index: fix memory leak on error case

This commit is contained in:
Patrick Steinhardt 2016-05-02 14:30:14 +02:00 committed by Carlos Martín Nieto
parent 1aacaa3154
commit fc2ef5143b

View File

@ -3008,7 +3008,7 @@ int git_index_read_index(
if (error < 0) {
giterr_set(GITERR_INDEX, "failed to insert entry");
return error;
goto done;
}
if (diff <= 0) {