Commit dc49eb58 by Carlos Martín Nieto

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

index: always queue `remove_entry` for removal
parents 0a294217 b057fdef
...@@ -3014,7 +3014,7 @@ int git_index_read_index( ...@@ -3014,7 +3014,7 @@ int git_index_read_index(
INSERT_IN_MAP_EX(index, new_entries_map, add_entry, error); 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); error = git_vector_insert(&remove_entries, remove_entry);
if (error < 0) { if (error < 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment