diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-06-21 17:26:13 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-06-21 17:26:13 -0400 |
commit | 66567ab2c674b958ac7fec47f0c830018245e04a (patch) | |
tree | 0728ca52a2f98cd9cfa5e1e9e034e31a66982fb6 /src/backend/parser/parse_expr.c | |
parent | e1a1e6e19840576e563c5c92bb4cbad621e23170 (diff) | |
download | postgresql-66567ab2c674b958ac7fec47f0c830018245e04a.tar.gz postgresql-66567ab2c674b958ac7fec47f0c830018245e04a.zip |
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/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions