From ef0065034a68edfc0ffed9965bb895073ad710db Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9=20Scharfe?= Date: Sun, 14 Feb 2010 10:56:46 +0100 Subject: [PATCH] fix minor memory leak in get_tree_entry() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- tree-walk.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2