On Fri, Sep 29, 2017 at 9:23 AM, Jeff King <peff@xxxxxxxx> 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.