From: Christian Couder Date: Fri, 29 Sep 2017 11:50:38 GMT Subject: Re: [PATCH Outreachy] mru: use double-linked list from list.h Message-ID: In-Reply-To: <20170929072354.fw4eclt56dmfj4a5@sigill.intra.peff.net> On Fri, Sep 29, 2017 at 9:23 AM, Jeff King wrote: > On Fri, Sep 29, 2017 at 09:18:11AM +0200, Christian Couder wrote: > >> As we use the "prepare_packed_git_run_once" static, this function will >> only be called only once when packed_git_mru has not yet been >> initialized, so there will be no leak. > > Check reprepare_packed_git(). It unsets the run_once flag, and then > calls prepare_packed_git() again. Ah ok.