]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/fsck.c
Merge branch 'sb/more-repo-in-api'
[thirdparty/git.git] / builtin / fsck.c
index bf5ddff43f74e0dba77d05e04bc14c0c59884287..9c4c11d0adedc7ebd5c48f8c786c6780394f22b1 100644 (file)
@@ -401,7 +401,8 @@ out:
        if (obj->type == OBJ_TREE)
                free_tree_buffer((struct tree *)obj);
        if (obj->type == OBJ_COMMIT)
-               free_commit_buffer((struct commit *)obj);
+               free_commit_buffer(the_repository->parsed_objects,
+                                  (struct commit *)obj);
        return err;
 }