Avoid memory leakage across successive calls of regexp_matches() or
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 11 Aug 2007 19:16:41 +0000 (19:16 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 11 Aug 2007 19:16:41 +0000 (19:16 +0000)
commit7fd4b55b5aab0cc9b99a147921601835234e8c2e
treea1b9b1a0a621f9a20af267851c9774c79165a385
parentdb98aa37d6f444b28631bc1cecae0b118d4f621a
Avoid memory leakage across successive calls of regexp_matches() or
regexp_split_to_table() within a single query.  This is only a partial
solution, as it turns out that with enough matches per string these
functions can also tickle a repalloc() misbehavior.  But fixing that
is a topic for a separate patch.
src/backend/utils/adt/regexp.c