1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-17 06:41:24 +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:13 +00:00
parent 420d84d32a
commit da876b5df4

View File

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