pgsql: Fix memory leak during regular expression execution.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix memory leak during regular expression execution.
Date: 2014-03-19 15:10:19
Message-ID: E1WQI8J-0001GN-5J@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix memory leak during regular expression execution.

For a regex containing backrefs, pg_regexec() might fail to free all the
sub-DFAs that were created during execution, resulting in a permanent
(session lifespan) memory leak. Problem was introduced by me in commit
587359479acbbdc95c8e37da40707e37097423f5. Per report from Sandro Santilli;
diagnosis by Greg Stark.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ea8c7e9054abf23fa3de2f8e4414f60ac8a8b620

Modified Files
--------------
src/backend/regex/regexec.c | 1 +
1 file changed, 1 insertion(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2014-03-19 18:11:56 pgsql: Setup error context callback for transaction lock waits
Previous Message pgsql 2014-03-19 14:09:36 pgsql: Tag refs/tags/REL9_2_8 was created