Unverified Commit 1afad26e by Edward Thomson Committed by GitHub

Merge pull request #6219 from apnadkarni/patch-2

Free parent and ref in lg2_commit before returning.
parents 4646f1e3 aab7c0ba
......@@ -79,6 +79,8 @@ int lg2_commit(git_repository *repo, int argc, char **argv)
git_index_free(index);
git_signature_free(signature);
git_tree_free(tree);
git_object_free(parent);
git_reference_free(ref);
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