aboutsummaryrefslogtreecommitdiff
path: root/read-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-09-10 18:14:14 -0700
committerJunio C Hamano <junkio@cox.net>2005-09-10 18:27:42 -0700
commitbb97a2a804e0afdd686ed9f18fed2ddc15833540 (patch)
tree90355d5d769d954687caab2de5ef8d37e4459c8f /read-tree.c
parent4d3fe0c5f342d0b00209916cf6951c2f8db414d2 (diff)
downloadgit-bb97a2a804e0afdd686ed9f18fed2ddc15833540.tar.gz
git-bb97a2a804e0afdd686ed9f18fed2ddc15833540.tar.xz
Plug leak in Daniel's read-tree.
... and it is ready to be pushed out in the "master" branch. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'read-tree.c')
-rw-r--r--read-tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/read-tree.c b/read-tree.c
index 3808d2398..9ace5bb0a 100644
--- a/read-tree.c
+++ b/read-tree.c
@@ -221,6 +221,7 @@ static int unpack_trees_rec(struct tree_entry_list **posns, int len,
if (unpack_trees_rec(subposns, len, newbase, fn,
indpos))
return -1;
+ free(newbase);
}
free(subposns);
free(src);