Skip site navigation (1) Skip section navigation (2)

pgsql: exec_eval_datum leaks memory when dealing with ROW or REC values.

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: exec_eval_datum leaks memory when dealing with ROW or REC values.
Date: 2005-06-20 22:51:49
Message-ID: 20050620225149.3AA2D528CA@svr1.postgresql.org (view raw or flat)
Thread:
Lists: 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

Next:From: User DiogobDate: 2005-06-20 23:02:19
Subject: dblink-tds - dblink_tds: add create view function
Previous:From: Tom LaneDate: 2005-06-20 22:51:29
Subject: pgsql: exec_eval_datum leaks memory when dealing with ROW or REC values.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group