diff options
author | Tom Lane | 2013-03-02 02:33:48 +0000 |
---|---|---|
committer | Tom Lane | 2013-03-02 02:34:40 +0000 |
commit | 698d99221da16289eb62ddddd477e0e34c786777 (patch) | |
tree | 9847c7f45425d226b588564b7513627b22bf3004 /doc/src | |
parent | 4aa15467264caf118614827b25db260ec85438ba (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 'doc/src')
0 files changed, 0 insertions, 0 deletions