MCPcopy Create free account
hub / github.com/apache/cloudberry / free_case

Function free_case

src/pl/plpgsql/src/pl_funcs.c:517–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517static void
518free_case(PLpgSQL_stmt_case *stmt)
519{
520 ListCell *l;
521
522 free_expr(stmt->t_expr);
523 foreach(l, stmt->case_when_list)
524 {
525 PLpgSQL_case_when *cwt = (PLpgSQL_case_when *) lfirst(l);
526
527 free_expr(cwt->expr);
528 free_stmts(cwt->stmts);
529 }
530 free_stmts(stmt->else_stmts);
531}
532
533static void
534free_loop(PLpgSQL_stmt_loop *stmt)

Callers 1

free_stmtFunction · 0.85

Calls 3

free_exprFunction · 0.85
free_stmtsFunction · 0.85
foreachFunction · 0.50

Tested by

no test coverage detected