pgsql: Fix memory leak during regular expression execution. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix memory leak during regular expression execution.
Date
Msg-id E1WQI8J-0001GQ-6x@gemulon.postgresql.org
Whole thread Raw
List 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
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/7f857a511f84410631dea6590d4036c43170afc8

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


pgsql-committers by date:

Previous
From: pgsql@postgresql.org
Date:
Subject: pgsql: Tag refs/tags/REL9_2_8 was created
Next
From: Tom Lane
Date:
Subject: pgsql: Fix memory leak during regular expression execution.