summaryrefslogtreecommitdiff
path: root/databases/py-postgresql/patches/patch-ae
blob: eaad0c9d289bc3df691ede7a8a0fa5ed4ea3d31d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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 */