From: Junio C Hamano Date: Sun, 11 Sep 2005 01:14:14 +0000 (-0700) Subject: Plug leak in Daniel's read-tree. X-Git-Tag: v0.99.7~84 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bb97a2a804e0afdd686ed9f18fed2ddc15833540;p=git.git 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 --- 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);