diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-03-01 21:33:46 -0500 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-03-01 21:34:36 -0500 |
| commit | 18c6dd8b6d613c1b5c5de7fb795d296392c15a74 (patch) | |
| tree | f1ca1f848d168819b46e699491bf58113f1ce4f4 /src/tutorial/complex.source | |
| parent | 0c54796b5c7458449152d3f812eee5b6cb014c93 (diff) | |
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
Diffstat (limited to 'src/tutorial/complex.source')
0 files changed, 0 insertions, 0 deletions
