Commit 1ad15540 by Pierre-Olivier Latour

Fixed memory leak in git_tag_delete()

parent 27372263
......@@ -406,7 +406,8 @@ int git_tag_delete(git_repository *repo, const char *tag_name)
if (error < 0)
return error;
if ((error = git_reference_delete(tag_ref)) == 0)
error = git_reference_delete(tag_ref);
git_reference_free(tag_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