X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=fsck-cache.c;h=4050c17eb020e0a916b23dbb610965cfcd5c7658;hb=000182eacf99cde27d5916aa415921924b82972c;hp=6ac122b71cf9a5eec298a003032c5724d47f306d;hpb=d1af002dc608be3213ba18df1a99ced0ab42e6d6;p=git.git diff --git a/fsck-cache.c b/fsck-cache.c index 6ac122b7..4050c17e 100644 --- a/fsck-cache.c +++ b/fsck-cache.c @@ -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)