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