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 /fetch.c | |
parent | a95cb6fb6b247cf90bd0b1a8bf989a0b42ada775 (diff) | |
download | git-d35bbe0b2e3765639c23978783a5319dfad33992.tar.gz |
[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>
Diffstat (limited to 'fetch.c')
-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; } |