Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] fetch.c: Plug memory leak in process_tree()
[gitweb.git]
/
fetch.c
diff --git
a/fetch.c
b/fetch.c
index 62f30d1055af41fb9b4bb06c36f38065a840d768..1a33ae984fe999096b0e06fb66155a19be001346 100644
(file)
--- 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;
}