mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 20:42:23 +00:00
Merge pull request #2649 from swisspol/2630
Fixed memory leak in git_tag_delete()
This commit is contained in:
commit
b8041215cf
@ -406,8 +406,9 @@ int git_tag_delete(git_repository *repo, const char *tag_name)
|
|||||||
if (error < 0)
|
if (error < 0)
|
||||||
return error;
|
return error;
|
||||||
|
|
||||||
if ((error = git_reference_delete(tag_ref)) == 0)
|
error = git_reference_delete(tag_ref);
|
||||||
git_reference_free(tag_ref);
|
|
||||||
|
git_reference_free(tag_ref);
|
||||||
|
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user