Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd222bb4

Browse files
committed
Fix memory leak with pg_regcomp
1 parenta1bd1d7 commitd222bb4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎contrib/tsearch2/ispell/spell.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,7 @@ CheckAffix(const char *word, size_t len, AFFIX * Affix, char flagflags, char *ne
647647
wmasklen=pg_mb2wchar_with_len(Affix->mask,mask,masklen);
648648

649649
err=pg_regcomp(&(Affix->reg),mask,wmasklen,REG_EXTENDED |REG_ICASE |REG_NOSUB);
650+
pfree(mask);
650651
if (err)
651652
{
652653
/* regerror(err, &(Affix->reg), regerrstr, ERRSTRSIZE); */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp