diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-02-14 18:59:20 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-02-14 18:59:20 -0800 |
commit | 7e5eb8f1834722507e2d2171a253b78b1d924458 (patch) | |
tree | d4808f07735f8cc3bea151753cb909e8c75cbb42 | |
parent | 7e94805db2a69e3fe6b9833fdaa6eb80de33959c (diff) | |
parent | b599672316ae0e0cf827e5e2cd6d3bb403d7b8cd (diff) | |
download | git-7e5eb8f1834722507e2d2171a253b78b1d924458.tar.gz |
Merge branch 'maint'
* maint:
fix minor memory leak in get_tree_entry()
-rw-r--r-- | tree-walk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tree-walk.c b/tree-walk.c index 08796c2322..67a9a0c5a5 100644 --- a/tree-walk.c +++ b/tree-walk.c @@ -441,6 +441,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; } |