commit | d35bbe0b2e3765639c23978783a5319dfad33992 | [log] [tgz] |
---|---|---|
author | Sergey Vlasov <vsu@altlinux.ru> | Fri Sep 23 16:28:18 2005 +0400 |
committer | Junio C Hamano <junkio@cox.net> | Fri Sep 23 14:30:45 2005 -0700 |
tree | da79d781c526938c2bfba5511c211b6fbf76196d | |
parent | a95cb6fb6b247cf90bd0b1a8bf989a0b42ada775 [diff] [blame] |
[PATCH] fetch.c: Plug memory leak in process_tree() When freeing a tree entry, must free its name too. Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: Junio C Hamano <junkio@cox.net>
diff --git a/fetch.c b/fetch.c index 62f30d1..1a33ae9 100644 --- a/fetch.c +++ b/fetch.c
@@ -48,6 +48,7 @@ struct tree_entry_list *next = entry->next; if (process(entry->item.any)) return -1; + free(entry->name); free(entry); entry = next; }