pgsql: Avoid double free of _SPI_current->tuptable.

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid double free of _SPI_current->tuptable.
Date: 2006-12-08 00:40:33
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

Log Message:
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.


Modified Files:
spi.c (r1.165 -> r1.165.2.1)

Browse pgsql-committers by date

  From Date Subject
Next Message User Okbob 2006-12-08 00:57:46 plpsm - plpgpsm: warning handling
Previous Message Tom Lane 2006-12-08 00:40:27 pgsql: Avoid double free of _SPI_current->tuptable.