diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-11-16 03:24:39 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2010-11-16 03:24:39 +0200 |
commit | 111e362263966869fbb30e2391b9e6bcef58c407 (patch) | |
tree | 0bd04fcea4ba46669b183b3a0aade42aeac4d4db /src/blob.c | |
parent | c3a20d5cab7d17cf55e769c39a3d50882e3d341d (diff) | |
download | libgit2-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.c | 1 |
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) |