aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/python/pgmodule.c
diff options
context:
space:
mode:
authorD'Arcy J.M. Cain <darcy@druid.net>2002-03-20 14:36:06 +0000
committerD'Arcy J.M. Cain <darcy@druid.net>2002-03-20 14:36:06 +0000
commit861c336b51912f7f0f7dbf7aab5fbb445820611f (patch)
tree46b81c71a319ff72d2155bf9c99707d64200bf12 /src/interfaces/python/pgmodule.c
parentf1f222843ed81008968dd6d71d5153f16215b8ee (diff)
downloadpostgresql-861c336b51912f7f0f7dbf7aab5fbb445820611f.tar.gz
postgresql-861c336b51912f7f0f7dbf7aab5fbb445820611f.zip
PyGreSQL causes a segfault when used with a Python executable that was
compiled with --with-pymalloc. This change fixes that. Thanks to Dave Wallace <dwallace@udel.edu>
Diffstat (limited to 'src/interfaces/python/pgmodule.c')
-rw-r--r--src/interfaces/python/pgmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interfaces/python/pgmodule.c b/src/interfaces/python/pgmodule.c
index 51f63d2d9eb..a9f8023d201 100644
--- a/src/interfaces/python/pgmodule.c
+++ b/src/interfaces/python/pgmodule.c
@@ -343,7 +343,7 @@ pgsource_dealloc(pgsourceobject * self)
PQclear(self->last_result);
Py_XDECREF(self->pgcnx);
- PyMem_DEL(self);
+ PyObject_DEL(self);
}
/* closes object */
@@ -990,7 +990,7 @@ pglarge_dealloc(pglargeobject * self)
lo_close(self->pgcnx->cnx, self->lo_fd);
Py_XDECREF(self->pgcnx);
- PyMem_DEL(self);
+ PyObject_DEL(self);
}
/* opens large object */
@@ -1546,7 +1546,7 @@ pg_dealloc(pgobject * self)
if (self->cnx)
PQfinish(self->cnx);
- PyMem_DEL(self);
+ PyObject_DEL(self);
}
/* close without deleting */
@@ -1579,7 +1579,7 @@ pgquery_dealloc(pgqueryobject * self)
if (self->last_result)
PQclear(self->last_result);
- PyMem_DEL(self);
+ PyObject_DEL(self);
}
/* resets connection */