gc: config option for running --auto in background
[gitweb.git] / list-objects.c
index 05c8c5c61660fdf351246df4279b7642695f8c7e..6cbedf0280076d8fe6e49241d89938955ecddead 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,