Commit 55952873 by Pierre-Olivier Latour Committed by Edward Thomson

Fixed memory leak in git_tag_delete()

parent 7881bab2
......@@ -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