Thread: pgsql: Fix memory leak in GIN index scans.

pgsql: Fix memory leak in GIN index scans.

From
Tom Lane
Date:
Fix memory leak in GIN index scans.

The code had a query-lifespan memory leak when encountering GIN entries
that have posting lists (rather than posting trees, ie, there are a
relatively small number of heap tuples containing this index key value).
With a suitable data distribution this could add up to a lot of leakage.
Problem seems to have been introduced by commit 36a35c550, so back-patch
to 9.4.

Julien Rouhaud

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/0479eccdcf0db59336aa45c6501666cd9f590b6a

Modified Files
--------------
src/backend/access/gin/ginget.c | 1 +
1 file changed, 1 insertion(+)