mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-24 04:49:09 +00:00
Fixed memory leak in git_tag_delete()
This commit is contained in:
parent
27372263a0
commit
1ad15540e4
@ -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