diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-06-21 17:26:36 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-06-21 17:26:36 -0400 |
commit | b02cd9c727636395621f3bb98a8a3604bc0576cf (patch) | |
tree | ed7abfa3d96665da946223fa07485ba3707d3e59 /src/backend/utils/adt/regexp.c | |
parent | 6d1650795eb0325ba524d74da1277c2bd55ced40 (diff) |
Fix memory leak in ARRAY(SELECT ...) subqueries.
Repeated execution of an uncorrelated ARRAY_SUBLINK sub-select (which
I think can only happen if the sub-select is embedded in a larger,
correlated subquery) would leak memory for the duration of the query,
due to not reclaiming the array generated in the previous execution.
Per bug #6698 from Armando Miraglia. Diagnosis and fix idea by Heikki,
patch itself by me.
This has been like this all along, so back-patch to all supported versions.
Diffstat (limited to 'src/backend/utils/adt/regexp.c')
0 files changed, 0 insertions, 0 deletions