]> 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:27 +0000 (00:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Dec 2006 00:40:27 +0000 (00:40 +0000)
commit566480acbbd37a6a7cb35ae46135e864ac8871a7
treef623658116c0fce237c0e1e9724a2f8c3fbce40e
parent8124215cc39a6c1f15ab8555c9fae4d776b6d9fd
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