]> granicus.if.org Git - postgresql/commitdiff
Free plan values in the PLyPlanObject dealloc function
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 18 Jan 2011 22:10:19 +0000 (00:10 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 18 Jan 2011 22:10:19 +0000 (00:10 +0200)
Jan UrbaƄski

src/pl/plpython/plpython.c

index 99424d35133625c8b1c0353e697e9533e4fbb313..e7328ae062f2de441fe18bbbfd35428b8bccbbb2 100644 (file)
@@ -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;