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

Lines changed: 3 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy