Persuade tsearch/tsearch2 to work (or at least pass their regression

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 3f43446e36bdc6a20784351185c27aabdad456eb
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-09-14T18:44:23Z
Releases: 7.4.1
Persuade tsearch/tsearch2 to work (or at least pass their regression
tests) when using flex 2.5.31.  The fix is to *not* try to use palloc
and pfree for allocations within the lexer; when you do that, the
yy_buffer_stack gets freed at inopportune times.  The code is already
set up to do manual deallocation, so I see no particular advantage to
using palloc anyway.

Files

PathChange+/−
contrib/tsearch2/wordparser/parser.l modified +0 −13
contrib/tsearch/parser.l modified +0 −10