diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-06-21 17:26:07 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-06-21 17:27:19 -0400 |
commit | d14241c2cf72966c09c1acece5cb44b5c84204b4 (patch) | |
tree | d9b2ea23d9e939414755ab070b2b9bbbd52be9d5 /src/backend/access/gist/gist.c | |
parent | 68d0e3cbf9c4b5981679668ebb554a4ec050fc72 (diff) | |
download | postgresql-d14241c2cf72966c09c1acece5cb44b5c84204b4.tar.gz |
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/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions