mirror of
https://git.proxmox.com/git/libgit2
synced 2025-10-18 16:59:06 +00:00
refs loose_lookup: also free the buffer on success
Free the ref_file buffer at the end of the function also on success. This fixes a small memory leak.
This commit is contained in:
parent
70236bab2d
commit
567fc1d20c
@ -333,6 +333,7 @@ static int loose_lookup(
|
||||
|
||||
ref->mtime = ref_time;
|
||||
*ref_out = ref;
|
||||
gitfo_free_buf(&ref_file);
|
||||
return GIT_SUCCESS;
|
||||
|
||||
cleanup:
|
||||
|
Loading…
Reference in New Issue
Block a user