mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 18:08:11 +00:00
Merge pull request #3538 from pks-t/pks/index-memory-leak
index: always queue `remove_entry` for removal
This commit is contained in:
commit
dc49eb585f
@ -3014,7 +3014,7 @@ int git_index_read_index(
|
||||
INSERT_IN_MAP_EX(index, new_entries_map, add_entry, error);
|
||||
}
|
||||
|
||||
if (remove_entry && !error)
|
||||
if (remove_entry && error >= 0)
|
||||
error = git_vector_insert(&remove_entries, remove_entry);
|
||||
|
||||
if (error < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user