On Fri, Dec 10 2021, ZheNing Hu via GitGitGadget wrote: > From: ZheNing Hu <adlternative@xxxxxxxxx> > > On the checkout code path, we dynamically allocate > memory for `refname` and `path` in `struct branch_info`, > but did not free their memory at the end. So introduce > branch_info_clear() which can free branch_info memory. This (partially) duplicates my 9081a421a6d (checkout: fix "branch info" memory leaks, 2021-11-16) which is in "next" already.