• Tom Lane's avatar
    Fix memory leak during regular expression execution. · ea8c7e90
    Tom Lane authored
    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
    58735947.  Per report from Sandro Santilli;
    diagnosis by Greg Stark.
    ea8c7e90
regexec.c 32.5 KB