Commit 111e3622 by Vicent Marti

Fix freeing blob objects from the ODB

The internal contents of the blob were being free'd but not the blob
object itself.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
parent c3a20d5c
......@@ -74,6 +74,7 @@ int git_blob_rawsize(git_blob *blob)
void git_blob__free(git_blob *blob)
{
gitfo_free_buf(&blob->content);
free(blob);
}
int git_blob__parse(git_blob *blob)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment