postgresql/src/pl
Alvaro Herrera 3cb6ef9983 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
..
plperl PL/Perl: Add alternative expected file for Perl 5.22 2015-07-03 17:49:33 -04:00
plpgsql Translation updates 2015-05-18 08:45:56 -04:00
plpython Revert error-throwing wrappers for the printf family of functions. 2015-05-19 18:17:42 -04:00
tcl Fix (some of) pltcl memory usage 2015-07-20 14:18:08 +02:00
Makefile Make distprep and *clean build targets recurse into all subdirectories. 2011-07-03 13:55:12 -04:00