]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'maint-1.6.6' into maint
authorJunio C Hamano <gitster@pobox.com>
Mon, 15 Feb 2010 02:59:14 +0000 (18:59 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Feb 2010 02:59:14 +0000 (18:59 -0800)
* maint-1.6.6:
  fix minor memory leak in get_tree_entry()

tree-walk.c

index 08796c23228fbfb6eb255c479f0196768ee83b27..67a9a0c5a5bf7d7125765679318cfcd68c160da7 100644 (file)
@@ -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;
        }