summaryrefslogtreecommitdiffstats
path: root/builtin/reflog.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-09-17 20:37:33 +0200
committerJunio C Hamano <gitster@pobox.com>2013-09-17 20:37:33 +0200
commitb8f23112f0415cc86eb0ec576ac7e16c7c9d78b8 (patch)
tree245a2c5f2541f4151372b323bdbbb497979a262b /builtin/reflog.c
parentMerge branch 'maint' (diff)
parentclear parsed flag when we free tree buffers (diff)
downloadgit-b8f23112f0415cc86eb0ec576ac7e16c7c9d78b8.tar.xz
git-b8f23112f0415cc86eb0ec576ac7e16c7c9d78b8.zip
Merge branch 'jk/free-tree-buffer'
* jk/free-tree-buffer: clear parsed flag when we free tree buffers
Diffstat (limited to 'builtin/reflog.c')
-rw-r--r--builtin/reflog.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/reflog.c b/builtin/reflog.c
index 54184b3d13..ba27f7cc61 100644
--- a/builtin/reflog.c
+++ b/builtin/reflog.c
@@ -94,8 +94,7 @@ static int tree_is_complete(const unsigned char *sha1)
complete = 0;
}
}
- free(tree->buffer);
- tree->buffer = NULL;
+ free_tree_buffer(tree);
if (complete)
tree->object.flags |= SEEN;