Subject: Re: [PATCH 1/2] checkout: handling branch_info memory leak

From: Ævar Arnfjörð Bjarmason <[email-masked]>
Date: Fri, 10 Dec 2021 08:13:23 +0100

On Fri, Dec 10 2021, ZheNing Hu via GitGitGadget wrote:

> From: ZheNing Hu <[email-masked]>
>
> 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.