filter: fix memory leak

This commit is contained in:
Ben Straub 2012-07-21 20:11:37 -07:00
parent 09a03995e0
commit 7cae2bcdf9

View File

@ -171,7 +171,10 @@ static int unfiltered_blob_contents(git_buf *out, git_repository *repo, const gi
git_blob *blob;
if (!(retcode = git_blob_lookup(&blob, repo, blob_id)))
{
retcode = git_blob__getbuf(out, blob);
git_blob_free(blob);
}
return retcode;
}