aboutsummaryrefslogtreecommitdiffstats
path: root/tree-walk.c
diff options
context:
space:
mode:
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 02e2aed773..a0fe88c55d 100644
--- a/tree-walk.c
+++ b/tree-walk.c
@@ -250,6 +250,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;
}