mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-04 12:14:50 +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;
|
git_blob *blob;
|
||||||
|
|
||||||
if (!(retcode = git_blob_lookup(&blob, repo, blob_id)))
|
if (!(retcode = git_blob_lookup(&blob, repo, blob_id)))
|
||||||
|
{
|
||||||
retcode = git_blob__getbuf(out, blob);
|
retcode = git_blob__getbuf(out, blob);
|
||||||
|
git_blob_free(blob);
|
||||||
|
}
|
||||||
|
|
||||||
return retcode;
|
return retcode;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user