Missing dispose in git_tag_create__internal

parent a8b18f15
......@@ -299,8 +299,10 @@ static int git_tag_create__internal(
}
if (create_tag_annotation) {
if (write_tag_annotation(oid, repo, tag_name, target, tagger, message) < 0)
if (write_tag_annotation(oid, repo, tag_name, target, tagger, message) < 0) {
git_str_dispose(&ref_name);
return -1;
}
} else
git_oid_cpy(oid, git_object_id(target));
......
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