pgsql: Avoid memory leakage across successive calls of regexp_matches()

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid memory leakage across successive calls of regexp_matches()
Date: 2007-08-11 19:16:41
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/utils/adt:
regexp.c (r1.72 -> r1.73)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/regexp.c?r1=1.72&r2=1.73)

Browse pgsql-committers by date

  From Date Subject
Next Message User Mkz 2007-08-12 13:32:21 pgbouncer - pgbouncer: add server vars to SHOW FDS, relax result parsing
Previous Message User Pgstudy 2007-08-11 16:17:43 fulldisjunction - fd: needed fix, reported by jeremy drake.