mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Fix leak in index.c
This commit is contained in:
@@ -1802,7 +1802,8 @@ int git_index_conflict_add(git_index *index,
|
||||
if (entries[i] && !valid_filemode(entries[i]->mode)) {
|
||||
giterr_set(GITERR_INDEX, "invalid filemode for stage %d entry",
|
||||
i + 1);
|
||||
return -1;
|
||||
ret = -1;
|
||||
goto on_error;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user