Skip to content
Snippets Groups Projects
Commit 5392e73b authored by Joe Conway's avatar Joe Conway
Browse files

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

reported by Andrea Grassi.
parent 185430ae
No related branches found
No related tags found
No related merge requests found
......@@ -1766,6 +1766,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;
}
......@@ -1774,6 +1775,8 @@ get_tuple_of_interest(Oid relid, int16 *pkattnums, int16 pknumatts, char **src_p
/*
* no qualifying tuples
*/
SPI_finish();
return NULL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment