From d35bbe0b2e3765639c23978783a5319dfad33992 Mon Sep 17 00:00:00 2001 From: Sergey Vlasov Date: Fri, 23 Sep 2005 16:28:18 +0400 Subject: [PATCH] [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 --- fetch.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2