about summary refs log tree commit diff
path: root/ui-tree.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ui-tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui-tree.c b/ui-tree.c
index 67fd1bc..524de0f 100644
--- 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 {