index: fix memory leak on error case

This commit is contained in:
Patrick Steinhardt 2016-05-02 14:30:14 +02:00
parent d24425fa8e
commit f80852af80

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) {