tree-diff: move all action-taking code out of compare_tree_entry()
[gitweb.git] / list-objects.c
index 8b39b50c22f6a83f700313790d0b94ced71d35bb..206816fa9c47eb419775bcf2005f9cd5144bc297 100644 (file)
@@ -123,8 +123,7 @@ static void process_tree(struct rev_info *revs,
                                     cb_data);
        }
        strbuf_setlen(base, baselen);
-       free(tree->buffer);
-       tree->buffer = NULL;
+       free_tree_buffer(tree);
 }
 
 static void mark_edge_parents_uninteresting(struct commit *commit,