1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-07 11:02:12 +03:00

Added missing SPI_finish() calls to get_tuple_of_interest(). Fixes bug

reported by Andrea Grassi.
This commit is contained in:
Joe Conway 2003-11-26 20:44:54 +00:00
parent fe979ae406
commit 005887d1c0

View File

@ -1883,6 +1883,7 @@ get_tuple_of_interest(Oid relid, int16 *pkattnums, int16 pknumatts, char **src_p
SPITupleTable *tuptable = SPI_tuptable; SPITupleTable *tuptable = SPI_tuptable;
tuple = SPI_copytuple(tuptable->vals[0]); tuple = SPI_copytuple(tuptable->vals[0]);
SPI_finish();
return tuple; return tuple;
} }
@ -1891,6 +1892,8 @@ get_tuple_of_interest(Oid relid, int16 *pkattnums, int16 pknumatts, char **src_p
/* /*
* no qualifying tuples * no qualifying tuples
*/ */
SPI_finish();
return NULL; return NULL;
} }