$NetBSD: patch-am,v 1.7 2002/04/04 07:48:31 jlam Exp $ --- src/interfaces/python/pgmodule.c.orig Mon Dec 3 04:39:44 2001 +++ src/interfaces/python/pgmodule.c @@ -343,7 +343,7 @@ PQclear(self->last_result); Py_XDECREF(self->pgcnx); - PyMem_DEL(self); + PyObject_DEL(self); } /* closes object */ @@ -990,7 +990,7 @@ 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 @@ if (self->cnx) PQfinish(self->cnx); - PyMem_DEL(self); + PyObject_DEL(self); } /* close without deleting */ @@ -1579,7 +1579,7 @@ if (self->last_result) PQclear(self->last_result); - PyMem_DEL(self); + PyObject_DEL(self); } /* resets connection */