mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 19:43:37 +00:00
index: fix memory leak on error case
This commit is contained in:
parent
d24425fa8e
commit
f80852af80
@ -3008,7 +3008,7 @@ int git_index_read_index(
|
||||
|
||||
if (error < 0) {
|
||||
giterr_set(GITERR_INDEX, "failed to insert entry");
|
||||
return error;
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (diff <= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user