clear parsed flag when we free tree buffers
[gitweb.git] / revision.c
index a67b615bfc7001ac28e339db1d91ea46a1b125b5..2190267e9a462b1912b86256ea88abf40a37abed 100644 (file)
@@ -134,8 +134,7 @@ void mark_tree_uninteresting(struct tree *tree)
         * We don't care about the tree any more
         * after it has been marked uninteresting.
         */
-       free(tree->buffer);
-       tree->buffer = NULL;
+       free_tree_buffer(tree);
 }
 
 void mark_parents_uninteresting(struct commit *commit)