mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-03 21:46:35 +00:00
Fix a memory leak in git_config_iterator_glob_new.
This commit is contained in:
parent
63170bcae9
commit
1234738e06
@ -458,6 +458,7 @@ int git_config_iterator_glob_new(git_config_iterator **out, const git_config *cf
|
||||
if ((result = regcomp(&iter->regex, regexp, REG_EXTENDED)) < 0) {
|
||||
giterr_set_regex(&iter->regex, result);
|
||||
regfree(&iter->regex);
|
||||
git__free(iter);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user