* plpgsql_destroy_econtext --- destroy function's econtext * * We check that it matches the top stack entry, and destroy the stack * entry along with the context. */
| 8304 | * entry along with the context. |
| 8305 | */ |
| 8306 | static void |
| 8307 | plpgsql_destroy_econtext(PLpgSQL_execstate *estate) |
| 8308 | { |
| 8309 | SimpleEcontextStackEntry *next; |
| 8310 | |
| 8311 | Assert(simple_econtext_stack != NULL); |
| 8312 | Assert(simple_econtext_stack->stack_econtext == estate->eval_econtext); |
| 8313 | |
| 8314 | next = simple_econtext_stack->next; |
| 8315 | pfree(simple_econtext_stack); |
| 8316 | simple_econtext_stack = next; |
| 8317 | |
| 8318 | FreeExprContext(estate->eval_econtext, true); |
| 8319 | estate->eval_econtext = NULL; |
| 8320 | } |
| 8321 | |
| 8322 | /* |
| 8323 | * plpgsql_xact_cb --- post-transaction-commit-or-abort cleanup |
no test coverage detected