mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 07:44:49 +00:00
filter: fix memory leak
This commit is contained in:
parent
09a03995e0
commit
7cae2bcdf9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user