diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-12-10 11:57:44 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-12-10 11:57:44 +0100 |
commit | dc49eb585f012ea8df309d90396873f91b2d3ae5 (patch) | |
tree | a491cfecbd90fb52d1ae4a22b2a883b5dec804ec /src/index.c | |
parent | 0a294217d8769b5e4e3066157711c059cf3c73b5 (diff) | |
parent | b057fdef694a558221784b534de66fe15dff5782 (diff) | |
download | libgit2-dc49eb585f012ea8df309d90396873f91b2d3ae5.tar.gz |
Merge pull request #3538 from pks-t/pks/index-memory-leak
index: always queue `remove_entry` for removal
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c index 391738e39..26cd83851 100644 --- a/src/index.c +++ b/src/index.c @@ -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) { |