mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
Free plan values in the PLyPlanObject dealloc function
Jan Urbański
This commit is contained in:
parent
719461b7a2
commit
847e8c7783
1 changed files with 3 additions and 0 deletions
|
|
@ -2681,6 +2681,7 @@ PLy_plan_new(void)
|
|||
ob->plan = NULL;
|
||||
ob->nargs = 0;
|
||||
ob->types = NULL;
|
||||
ob->values = NULL;
|
||||
ob->args = NULL;
|
||||
|
||||
return (PyObject *) ob;
|
||||
|
|
@ -2696,6 +2697,8 @@ PLy_plan_dealloc(PyObject *arg)
|
|||
SPI_freeplan(ob->plan);
|
||||
if (ob->types)
|
||||
PLy_free(ob->types);
|
||||
if (ob->values)
|
||||
PLy_free(ob->values);
|
||||
if (ob->args)
|
||||
{
|
||||
int i;
|
||||
|
|
|
|||
Loading…
Reference in a new issue