From: Sergey Vlasov Date: Fri, 23 Sep 2005 12:28:18 +0000 (+0400) Subject: [PATCH] fetch.c: Plug memory leak in process_tree() X-Git-Tag: v0.99.7c~2^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d35bbe0b2e3765639c23978783a5319dfad33992;p=git.git [PATCH] fetch.c: Plug memory leak in process_tree() When freeing a tree entry, must free its name too. Signed-off-by: Sergey Vlasov Signed-off-by: Junio C Hamano --- diff --git a/fetch.c b/fetch.c index 62f30d105..1a33ae984 100644 --- a/fetch.c +++ b/fetch.c @@ -48,6 +48,7 @@ static int process_tree(struct tree *tree) struct tree_entry_list *next = entry->next; if (process(entry->item.any)) return -1; + free(entry->name); free(entry); entry = next; }