| 491 | } |
| 492 | |
| 493 | static void |
| 494 | PLy_pop_execution_context(void) |
| 495 | { |
| 496 | PLyExecutionContext *context = PLy_execution_contexts; |
| 497 | |
| 498 | if (context == NULL) |
| 499 | elog(ERROR, "no Python function is currently executing"); |
| 500 | |
| 501 | PLy_execution_contexts = context->next; |
| 502 | |
| 503 | if (context->scratch_ctx) |
| 504 | MemoryContextDelete(context->scratch_ctx); |
| 505 | pfree(context); |
| 506 | } |
no test coverage detected