summaryrefslogtreecommitdiff
path: root/contrib/tsearch2/wordparser/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tsearch2/wordparser/parser.c')
-rw-r--r--contrib/tsearch2/wordparser/parser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/tsearch2/wordparser/parser.c b/contrib/tsearch2/wordparser/parser.c
index 23b031be796..8a5fcdabe66 100644
--- a/contrib/tsearch2/wordparser/parser.c
+++ b/contrib/tsearch2/wordparser/parser.c
@@ -71,8 +71,11 @@ TParserClose(TParser * prs)
prs->state = ptr;
}
+#ifdef TS_USE_WIDE
if (prs->wstr)
pfree(prs->wstr);
+#endif
+
pfree(prs);
}