From: Junio C Hamano Date: Tue, 29 Dec 2015 22:26:42 GMT Subject: Re: [PATCH v4 01/10] dir: free untracked cache when removing it Message-ID: In-Reply-To: <1451372974-16266-2-git-send-email-chriscool@tuxfamily.org> Christian Couder writes: > Signed-off-by: Christian Couder > --- > builtin/update-index.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/builtin/update-index.c b/builtin/update-index.c > index 7431938..a6fff87 100644 > --- a/builtin/update-index.c > +++ b/builtin/update-index.c > @@ -1123,6 +1123,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix) > add_untracked_ident(the_index.untracked); > the_index.cache_changed |= UNTRACKED_CHANGED; > } else if (!untracked_cache && the_index.untracked) { > + free_untracked_cache(the_index.untracked); > the_index.untracked = NULL; > the_index.cache_changed |= UNTRACKED_CHANGED; > } Looks good.