postgresql/src/pl/tcl
Alvaro Herrera 49c3000407 Fix (some of) pltcl memory usage
As reported by Bill Parker, PL/Tcl did not validate some malloc() calls
against NULL return.  Fix by using palloc() in a new long-lived memory
context instead.  This allows us to simplify error handling too, by
simply deleting the memory context instead of doing retail frees.

There's still a lot that could be done to improve PL/Tcl's memory
handling ...

This is pretty ancient, so backpatch all the way back.

Author: Michael Paquier and Álvaro Herrera
Discussion: https://www.postgresql.org/message-id/CAFrbyQwyLDYXfBOhPfoBGqnvuZO_Y90YgqFM11T2jvnxjLFmqw@mail.gmail.com
2015-07-20 14:18:08 +02:00
..
expected PL/Tcl: Add event trigger support 2013-11-23 21:32:00 -05:00
modules Fix whitespace issues found by git diff --check, add gitattributes 2013-11-10 14:48:29 -05:00
po Translation updates 2015-05-18 08:38:34 -04:00
sql PL/Tcl: Add event trigger support 2013-11-23 21:32:00 -05:00
.gitignore Allow make check in PL directories 2011-02-15 06:52:12 +02:00
Makefile On Windows, expect to find Tcl DLL in bin directory not lib directory. 2014-02-16 11:24:38 -05:00
nls.mk Translation updates 2013-05-05 22:34:23 -04:00
pltcl--1.0.sql Put comments on the installable procedural languages. 2011-07-03 19:03:51 -04:00
pltcl--unpackaged--1.0.sql Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
pltcl.c Fix (some of) pltcl memory usage 2015-07-20 14:18:08 +02:00
pltcl.control Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
pltclu--1.0.sql Put comments on the installable procedural languages. 2011-07-03 19:03:51 -04:00
pltclu--unpackaged--1.0.sql Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
pltclu.control Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00