Commit 111e362263966869fbb30e2391b9e6bcef58c407

Vicent Marti 2010-11-16T03:24:39

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>

1
2
3
4
5
6
7
8
9
10
11
12
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)