summaryrefslogtreecommitdiff
path: root/databases/py-postgresql/patches/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'databases/py-postgresql/patches/patch-ae')
-rw-r--r--databases/py-postgresql/patches/patch-ae40
1 files changed, 40 insertions, 0 deletions
diff --git a/databases/py-postgresql/patches/patch-ae b/databases/py-postgresql/patches/patch-ae
new file mode 100644
index 00000000000..eaad0c9d289
--- /dev/null
+++ b/databases/py-postgresql/patches/patch-ae
@@ -0,0 +1,40 @@
+$NetBSD: patch-ae,v 1.1 2003/01/05 19:26:21 jlam Exp $
+
+--- src/interfaces/python/pgmodule.c.orig Mon Dec 3 07:39:44 2001
++++ 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 */