pgsql: Prevent memory leaks in our various bison parsers when an error

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Prevent memory leaks in our various bison parsers when an error
Date: 2008-09-02 20:37:55
Message-ID: 20080902203755.38AC6755325@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Prevent memory leaks in our various bison parsers when an error occurs
during parsing. Formerly the parser's stack was allocated with malloc
and so wouldn't be reclaimed; this patch makes it use palloc instead,
so that flushing the current context will reclaim the memory. Per
Marko Kreen.

Modified Files:
--------------
pgsql/contrib/cube:
cubeparse.y (r1.17 -> r1.18)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/contrib/cube/cubeparse.y?r1=1.17&r2=1.18)
pgsql/contrib/seg:
segparse.y (r1.17 -> r1.18)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/contrib/seg/segparse.y?r1=1.17&r2=1.18)
pgsql/src/backend/bootstrap:
bootparse.y (r1.93 -> r1.94)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/bootstrap/bootparse.y?r1=1.93&r2=1.94)
pgsql/src/backend/parser:
gram.y (r2.621 -> r2.622)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/gram.y?r1=2.621&r2=2.622)
pgsql/src/pl/plpgsql/src:
gram.y (r1.113 -> r1.114)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/gram.y?r1=1.113&r2=1.114)

Browse pgsql-committers by date

  From Date Subject
Next Message User Jbcooley 2008-09-03 01:46:06 npgsql - Npgsql2: change multiset value to read from type rather than
Previous Message Dave Page 2008-09-02 15:24:12 stackbuilder - wizard: Capitalise CPack correctly