[patch] git: cleanup in ls-tree.c
[git.git] / ls-tree.c
index 7f8f864..4231c4b 100644 (file)
--- a/ls-tree.c
+++ b/ls-tree.c
@@ -77,6 +77,7 @@ static int list(unsigned char *sha1)
        if (!buffer)
                die("unable to read sha1 file");
        list_recursive(buffer, "tree", size, NULL);
+       free(buffer);
        return 0;
 }