OSDN Git Service

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)
commitae65ca312f4dab71886b747fe810dc27548ca76d
tree6f59cce686133d7130cd88b172922940bf136c97
parent1b70619311f74ccbab52dfad7e0c96c36b6718a5
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