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>
This commit is contained in:
Vicent Marti 2010-11-16 03:24:39 +02:00
parent c3a20d5cab
commit 111e362263

View File

@ -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)