Commit b8041215 by Edward Thomson

Merge pull request #2649 from swisspol/2630

Fixed memory leak in git_tag_delete()
parents a747ea49 1ad15540
......@@ -406,8 +406,9 @@ int git_tag_delete(git_repository *repo, const char *tag_name)
if (error < 0)
return error;
if ((error = git_reference_delete(tag_ref)) == 0)
git_reference_free(tag_ref);
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