From bb97a2a804e0afdd686ed9f18fed2ddc15833540 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sat, 10 Sep 2005 18:14:14 -0700 Subject: [PATCH] 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 --- read-tree.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.26.2