| 69 | } |
| 70 | |
| 71 | static void |
| 72 | PLy_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 | |
| 90 | static PyObject * |
nothing calls this directly
no test coverage detected