summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-09-17 11:37:33 -0700
committerJunio C Hamano <gitster@pobox.com>2013-09-17 11:37:33 -0700
commitb8f23112f0415cc86eb0ec576ac7e16c7c9d78b8 (patch)
tree245a2c5f2541f4151372b323bdbbb497979a262b /revision.c
parent5e3a3a1527b5ebf4c0c7e3a8394287a04220543f (diff)
parent6e454b9a31840102807f1eee527ee717bf134102 (diff)
downloadgit-b8f23112f0415cc86eb0ec576ac7e16c7c9d78b8.tar.gz
Merge branch 'jk/free-tree-buffer'
* jk/free-tree-buffer: clear parsed flag when we free tree buffers
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/revision.c b/revision.c
index 6230a80a77..172b0d3b2c 100644
--- a/revision.c
+++ b/revision.c
@@ -139,8 +139,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)