summaryrefslogtreecommitdiff
path: root/databases/postgresql/patches/patch-am
blob: 289868dcb0787fcd1e390a48335e2530aa390830 (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-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 */