]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-tree.c
ui-refs: remove unnecessary sanity check
[cgit.git] / ui-tree.c
index 67fd1bc51652b990be5e06be45d05821c7f67a02..524de0fc30d91caa8305cfd4ba40e74110b6a5f2 100644 (file)
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -127,6 +127,8 @@ static void print_object(const unsigned char *sha1, char *path, const char *base
                print_binary_buffer(buf, size);
        else
                print_text_buffer(basename, buf, size);
+
+       free(buf);
 }
 
 struct single_tree_ctx {