diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-03-01 21:33:38 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-03-01 21:34:27 -0500 |
commit | 0fe397fa49559f78d2cbffa6f2422d65d9e0e143 (patch) | |
tree | 96e29c871a0f71434d4f58e5134337c2b14d0d83 /src/backend/executor/nodeModifyTable.c | |
parent | 3ae9d4db47a942f7330ce69f954c8a2b58177236 (diff) | |
download | postgresql-0fe397fa49559f78d2cbffa6f2422d65d9e0e143.tar.gz postgresql-0fe397fa49559f78d2cbffa6f2422d65d9e0e143.zip |
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/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions