Commit fc2ef514 by Patrick Steinhardt Committed by Carlos Martín Nieto

index: fix memory leak on error case

parent 1aacaa31
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment