Merge pull request #2649 from swisspol/2630

Fixed memory leak in git_tag_delete()
This commit is contained in:
Edward Thomson 2014-10-24 14:02:53 -07:00
commit b8041215cf

View File

@ -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;