summaryrefslogtreecommitdiff
path: root/tree-walk.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-02-14 18:59:14 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-02-14 18:59:14 -0800
commitb599672316ae0e0cf827e5e2cd6d3bb403d7b8cd (patch)
tree3214dc21b1fd0945d4f3760ba5f121324fd6ee97 /tree-walk.c
parentStart 1.7.0 maintenance track (diff)
parentfix minor memory leak in get_tree_entry() (diff)
downloadtgif-b599672316ae0e0cf827e5e2cd6d3bb403d7b8cd.tar.xz
Merge branch 'maint-1.6.6' into maint
* maint-1.6.6: fix minor memory leak in get_tree_entry()
Diffstat (limited to 'tree-walk.c')
-rw-r--r--tree-walk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tree-walk.c b/tree-walk.c
index 08796c2322..67a9a0c5a5 100644
--- a/tree-walk.c
+++ b/tree-walk.c
@@ -441,6 +441,7 @@ int get_tree_entry(const unsigned char *tree_sha1, const char *name, unsigned ch
if (name[0] == '\0') {
hashcpy(sha1, root);
+ free(tree);
return 0;
}