diff options
author | Sergey Vlasov <vsu@altlinux.ru> | 2005-09-23 16:28:18 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-23 14:30:45 -0700 |
commit | d35bbe0b2e3765639c23978783a5319dfad33992 (patch) | |
tree | da79d781c526938c2bfba5511c211b6fbf76196d | |
parent | [PATCH] fetch.c: Do not build object ref lists (diff) | |
download | tgif-d35bbe0b2e3765639c23978783a5319dfad33992.tar.xz |
[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>
-rw-r--r-- | fetch.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |