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>
diff --git a/src/blob.c b/src/blob.c
index 77f5ff8..818f838 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -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)