diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2011-01-19 00:10:19 +0200 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2011-01-19 00:10:19 +0200 |
commit | 847e8c7783e877bbdc6a89250ade7d264eee5593 (patch) | |
tree | c9db87aedbd98a23d28d360d797d5ed115d4331b /src | |
parent | 719461b7a28c04a84b0fb1e5faa9b3cb5ee66605 (diff) | |
download | postgresql-847e8c7783e877bbdc6a89250ade7d264eee5593.tar.gz postgresql-847e8c7783e877bbdc6a89250ade7d264eee5593.zip |
Free plan values in the PLyPlanObject dealloc function
Jan UrbaĆski
Diffstat (limited to 'src')
-rw-r--r-- | src/pl/plpython/plpython.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c index 99424d35133..e7328ae062f 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; |