aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);