]> granicus.if.org Git - postgresql/commit
Avoid double free of _SPI_current->tuptable. AtEOSubXact_SPI() now tries to
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Dec 2006 00:40:33 +0000 (00:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Dec 2006 00:40:33 +0000 (00:40 +0000)
commit3647ff3b3a3436ca67104a0a0f8f4b8c57b7f911
treeb3bf3953888202bebf8f8ed9336c113915ee9ca6
parent373bd34e739026e100a231f345bf4d90c900df90
Avoid double free of _SPI_current->tuptable.  AtEOSubXact_SPI() now tries to
release it in a subtransaction abort, but this neglects possibility that
someone outside SPI already did.  Fix is for spi.c to forget about a tuptable
as soon as it's handed it back to the caller.
Per bug #2817 from Michael Andreen.
src/backend/executor/spi.c