Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 847e8c7

Browse files
committed
Free plan values in the PLyPlanObject dealloc function
Jan Urbański
1 parent 719461b commit 847e8c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pl/plpython/plpython.c

+3
Original file line numberDiff line numberDiff line change
@@ -2681,6 +2681,7 @@ PLy_plan_new(void)
26812681
ob->plan = NULL;
26822682
ob->nargs = 0;
26832683
ob->types = NULL;
2684+
ob->values = NULL;
26842685
ob->args = NULL;
26852686

26862687
return (PyObject *) ob;
@@ -2696,6 +2697,8 @@ PLy_plan_dealloc(PyObject *arg)
26962697
SPI_freeplan(ob->plan);
26972698
if (ob->types)
26982699
PLy_free(ob->types);
2700+
if (ob->values)
2701+
PLy_free(ob->values);
26992702
if (ob->args)
27002703
{
27012704
int i;

0 commit comments

Comments
 (0)