Fix leak in index.c

This commit is contained in:
abyss7
2018-08-16 22:45:43 +03:00
committed by GitHub
parent 622e12c1b2
commit 581d5492f6

View File

@@ -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;
}
}