Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
test prerequisites: enumerate with commas
[gitweb.git]
/
builtin
/
fsck.c
diff --git
a/builtin/fsck.c
b/builtin/fsck.c
index fc150c882122c53965fd246ad862e3a75d8768e2..8aadca160e857be8a87ec1f152e51eb6f51c90b5 100644
(file)
--- a/
builtin/fsck.c
+++ b/
builtin/fsck.c
@@
-310,8
+310,7
@@
static int fsck_obj(struct object *obj)
if (obj->type == OBJ_COMMIT) {
struct commit *commit = (struct commit *) obj;
- free(commit->buffer);
- commit->buffer = NULL;
+ free_commit_buffer(commit);
if (!commit->parents && show_root)
printf("root %s\n", sha1_to_hex(commit->object.sha1));