From 847e8c7783e877bbdc6a89250ade7d264eee5593 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 19 Jan 2011 00:10:19 +0200 Subject: [PATCH] Free plan values in the PLyPlanObject dealloc function MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Jan Urbański --- src/pl/plpython/plpython.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c index 99424d3513..e7328ae062 100644 --- a/src/pl/plpython/plpython.c +++ b/src/pl/plpython/plpython.c @@ -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; -- 2.40.0