Make "parse_object()" also fill in commit message buffer data.
[git.git] / fsck-cache.c
index 6ac122b..4050c17 100644 (file)
@@ -203,6 +203,8 @@ static int fsck_tree(struct tree *item)
 
 static int fsck_commit(struct commit *commit)
 {
+       free(commit->buffer);
+       commit->buffer = NULL;
        if (!commit->tree)
                return -1;
        if (!commit->parents && show_root)