summaryrefslogtreecommitdiff
path: root/src/blob.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-11-16 03:24:39 +0200
committerVicent Marti <tanoku@gmail.com>2010-11-16 03:24:39 +0200
commit111e362263966869fbb30e2391b9e6bcef58c407 (patch)
tree0bd04fcea4ba46669b183b3a0aade42aeac4d4db /src/blob.c
parentc3a20d5cab7d17cf55e769c39a3d50882e3d341d (diff)
downloadlibgit2-111e362263966869fbb30e2391b9e6bcef58c407.tar.gz
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>
Diffstat (limited to 'src/blob.c')
-rw-r--r--src/blob.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blob.c b/src/blob.c
index 77f5ff887..818f838d2 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)