pgsql: exec_eval_datum leaks memory when dealing with ROW or REC values. - Mailing list pgsql-committers

From tgl@svr1.postgresql.org (Tom Lane)
Subject pgsql: exec_eval_datum leaks memory when dealing with ROW or REC values.
Date
Msg-id 20050620225149.3AA2D528CA@svr1.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
exec_eval_datum leaks memory when dealing with ROW or REC values.
It never leaked memory before PG 8.0, so none of the callers are
expecting this.  Cleanest fix seems to be to make it allocate the needed
memory in estate->eval_econtext, where it will be cleaned up by
the next exec_eval_cleanup.  Per report from Bill Rugolsky.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/pl/plpgsql/src:
        pl_exec.c (r1.127.4.2 -> r1.127.4.3)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/pl_exec.c.diff?r1=1.127.4.2&r2=1.127.4.3)

pgsql-committers by date:

Previous
From: tgl@svr1.postgresql.org (Tom Lane)
Date:
Subject: pgsql: exec_eval_datum leaks memory when dealing with ROW or REC values.
Next
From: diogob@pgfoundry.org (User Diogob)
Date:
Subject: dblink-tds - dblink_tds: add create view function