summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Sergey Vlasov <vsu@altlinux.ru>2005-09-23 16:28:18 +0400
committerLibravatar Junio C Hamano <junkio@cox.net>2005-09-23 14:30:45 -0700
commitd35bbe0b2e3765639c23978783a5319dfad33992 (patch)
treeda79d781c526938c2bfba5511c211b6fbf76196d
parent[PATCH] fetch.c: Do not build object ref lists (diff)
downloadtgif-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fetch.c b/fetch.c
index 62f30d1055..1a33ae984f 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;
}