Commit 847e8c77 authored by Peter Eisentraut's avatar Peter Eisentraut

Free plan values in the PLyPlanObject dealloc function

Jan Urbański
parent 719461b7
...@@ -2681,6 +2681,7 @@ PLy_plan_new(void) ...@@ -2681,6 +2681,7 @@ PLy_plan_new(void)
ob->plan = NULL; ob->plan = NULL;
ob->nargs = 0; ob->nargs = 0;
ob->types = NULL; ob->types = NULL;
ob->values = NULL;
ob->args = NULL; ob->args = NULL;
return (PyObject *) ob; return (PyObject *) ob;
...@@ -2696,6 +2697,8 @@ PLy_plan_dealloc(PyObject *arg) ...@@ -2696,6 +2697,8 @@ PLy_plan_dealloc(PyObject *arg)
SPI_freeplan(ob->plan); SPI_freeplan(ob->plan);
if (ob->types) if (ob->types)
PLy_free(ob->types); PLy_free(ob->types);
if (ob->values)
PLy_free(ob->values);
if (ob->args) if (ob->args)
{ {
int i; int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment