Unverified Commit d56b4079 by Edward Thomson Committed by GitHub

Merge pull request #6024 from lhchavez/fix-possible-null-pointer-dereference

Fix a possible null pointer dereference
parents c811fc36 1e49f127
......@@ -716,7 +716,8 @@ int git_commit_graph_writer_add_index_file(
goto cleanup;
cleanup:
git_mwindow_put_pack(p);
if (p)
git_mwindow_put_pack(p);
git_odb_free(state.db);
return error;
}
......
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