From: René Scharfe Date: Sun, 14 Feb 2010 09:56:46 +0000 (+0100) Subject: fix minor memory leak in get_tree_entry() X-Git-Tag: v1.7.0.1~5^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ef0065034a68edfc0ffed9965bb895073ad710db;p=git.git fix minor memory leak in get_tree_entry() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- diff --git a/tree-walk.c b/tree-walk.c index 02e2aed77..a0fe88c55 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; }