postgresql/src/pl
Tom Lane b2da7c805c Eliminate memory leaks in plperl's spi_prepare() function.
Careless use of TopMemoryContext for I/O function data meant that repeated
use of spi_prepare and spi_freeplan would leak memory at the session level,
as per report from Christian Schröder.  In addition, spi_prepare
leaked a lot of transient data within the current plperl function's SPI
Proc context, which would be a problem for repeated use of spi_prepare
within a single plperl function call; and it wasn't terribly careful
about releasing permanent allocations in event of an error, either.

In passing, clean up some copy-and-pasteos in query-lookup error messages.

Alex Hunsaker and Tom Lane
2013-03-01 21:34:32 -05:00
..
plperl Eliminate memory leaks in plperl's spi_prepare() function. 2013-03-01 21:34:32 -05:00
plpgsql Translation updates 2013-02-03 23:58:38 -05:00
plpython Translation updates 2013-02-03 23:58:38 -05:00
tcl Translation updates 2013-02-03 23:58:38 -05:00
Makefile Make distprep and *clean build targets recurse into all subdirectories. 2011-07-03 13:55:27 -04:00