From: Ævar Arnfjörð Bjarmason Date: Fri, 10 Dec 2021 07:13:23 GMT Subject: Re: [PATCH 1/2] checkout: handling branch_info memory leak Message-ID: <211210.865yrxdj95.gmgdl@evledraar.gmail.com> In-Reply-To: On Fri, Dec 10 2021, ZheNing Hu via GitGitGadget wrote: > From: ZheNing Hu > > 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.