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

Function PLy_plan_dealloc

src/pl/plpython/plpy_planobject.c:71–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71static void
72PLy_plan_dealloc(PyObject *arg)
73{
74 PLyPlanObject *ob = (PLyPlanObject *) arg;
75
76 if (ob->plan)
77 {
78 SPI_freeplan(ob->plan);
79 ob->plan = NULL;
80 }
81 if (ob->mcxt)
82 {
83 MemoryContextDelete(ob->mcxt);
84 ob->mcxt = NULL;
85 }
86 arg->ob_type->tp_free(arg);
87}
88
89
90static PyObject *

Callers

nothing calls this directly

Calls 1

SPI_freeplanFunction · 0.85

Tested by

no test coverage detected