]> granicus.if.org Git - postgresql/commit
Fix multiple memory leaks in PLy_spi_execute_fetch_result: it would leak
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 30 Apr 2010 19:15:58 +0000 (19:15 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 30 Apr 2010 19:15:58 +0000 (19:15 +0000)
commit80dc8a8fa343fc54bc2fe945b215bebdb287e342
treeffbcb9635b18d497841a49f6ed15623a6e75170d
parent750503cea56606b068f12dfb313013b008ddfdf7
Fix multiple memory leaks in PLy_spi_execute_fetch_result: it would leak
memory if the result had zero rows, and also if there was any sort of error
while converting the result tuples into Python data.  Reported and partially
fixed by Andres Freund.

Back-patch to all supported versions.  Note: I haven't tested the 7.4 fix.
7.4's configure check for python is so obsolete it doesn't work on my
current machines :-(.  The logic change is pretty straightforward though.
src/pl/plpython/plpython.c