Merge pull request #3538 from pks-t/pks/index-memory-leak

index: always queue `remove_entry` for removal
This commit is contained in:
Carlos Martín Nieto 2015-12-10 11:57:44 +01:00
commit dc49eb585f

View File

@ -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) {