mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
Fix memory leak with pg_regcomp
This commit is contained in:
parent
a1bd1d70d6
commit
d222bb4d5e
@ -647,6 +647,7 @@ CheckAffix(const char *word, size_t len, AFFIX * Affix, char flagflags, char *ne
|
||||
wmasklen = pg_mb2wchar_with_len( Affix->mask, mask, masklen);
|
||||
|
||||
err = pg_regcomp(&(Affix->reg), mask, wmasklen, REG_EXTENDED | REG_ICASE | REG_NOSUB);
|
||||
pfree(mask);
|
||||
if (err)
|
||||
{
|
||||
/* regerror(err, &(Affix->reg), regerrstr, ERRSTRSIZE); */
|
||||
|
Loading…
Reference in New Issue
Block a user