diff options
| author | Teodor Sigaev | 2004-05-31 13:52:57 +0000 |
|---|---|---|
| committer | Teodor Sigaev | 2004-05-31 13:52:57 +0000 |
| commit | d222bb4d5ec7cf057f318e88992c8c06d5494ca8 (patch) | |
| tree | bc60f0febe044ef09f9546a9cd01e25c2eff3114 /contrib/tsearch2 | |
| parent | a1bd1d70d6524060c6fe5ec6d33406afad1b830d (diff) | |
Fix memory leak with pg_regcomp
Diffstat (limited to 'contrib/tsearch2')
| -rw-r--r-- | contrib/tsearch2/ispell/spell.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/tsearch2/ispell/spell.c b/contrib/tsearch2/ispell/spell.c index bdcbc588163..caae1fc5c70 100644 --- a/contrib/tsearch2/ispell/spell.c +++ b/contrib/tsearch2/ispell/spell.c @@ -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); */ |
