aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2009-02-27 09:35:30 +0800
committersobomax <sobomax@FreeBSD.org>2009-02-27 09:35:30 +0800
commitfebaf5a7587693f242f9fb40506e05e032d82f56 (patch)
treeea6de3c67c747da60597f262660c88f965281f37 /net
parentc80fe31562c4f8dcb014d2ebf258946cb31e8288 (diff)
downloadfreebsd-ports-gnome-febaf5a7587693f242f9fb40506e05e032d82f56.tar.gz
freebsd-ports-gnome-febaf5a7587693f242f9fb40506e05e032d82f56.tar.zst
freebsd-ports-gnome-febaf5a7587693f242f9fb40506e05e032d82f56.zip
Fix python interpreter crash caused by the incorrect use of PyMem_DEL()
instead of PyObject_DEL(). PR: ports/131609 Submitted by: Andriy Pylypenko <bamby@sippysoft.com> Approved by: MAINTAINER's timeout
Diffstat (limited to 'net')
-rw-r--r--net/py-xmlrpc/Makefile1
-rw-r--r--net/py-xmlrpc/files/patch-src_rpcBase64.c14
-rw-r--r--net/py-xmlrpc/files/patch-src_rpcBoolean.c14
-rw-r--r--net/py-xmlrpc/files/patch-src_rpcClient.c14
-rw-r--r--net/py-xmlrpc/files/patch-src_rpcDate.c14
-rw-r--r--net/py-xmlrpc/files/patch-src_rpcDispatch.c14
-rw-r--r--net/py-xmlrpc/files/patch-src_rpcSource.c14
7 files changed, 85 insertions, 0 deletions
diff --git a/net/py-xmlrpc/Makefile b/net/py-xmlrpc/Makefile
index 629549e0c9f1..623428c2ccfa 100644
--- a/net/py-xmlrpc/Makefile
+++ b/net/py-xmlrpc/Makefile
@@ -7,6 +7,7 @@
PORTNAME= xmlrpc
PORTVERSION= 0.8.8.3
+PORTREVISION= 1
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= py-${PORTNAME}
diff --git a/net/py-xmlrpc/files/patch-src_rpcBase64.c b/net/py-xmlrpc/files/patch-src_rpcBase64.c
new file mode 100644
index 000000000000..e527c921ce1e
--- /dev/null
+++ b/net/py-xmlrpc/files/patch-src_rpcBase64.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- src/rpcBase64.c
++++ src/rpcBase64.c
+@@ -239,7 +239,7 @@
+ if (bp->value) {
+ Py_DECREF(bp->value);
+ }
+- PyMem_DEL(bp);
++ PyObject_DEL(bp);
+ }
+
+
diff --git a/net/py-xmlrpc/files/patch-src_rpcBoolean.c b/net/py-xmlrpc/files/patch-src_rpcBoolean.c
new file mode 100644
index 000000000000..cb3d78f0a05f
--- /dev/null
+++ b/net/py-xmlrpc/files/patch-src_rpcBoolean.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- src/rpcBoolean.c
++++ src/rpcBoolean.c
+@@ -46,7 +46,7 @@
+ static void
+ rpcBoolDealloc(rpcBool *bp)
+ {
+- PyMem_DEL(bp);
++ PyObject_DEL(bp);
+ }
+
+
diff --git a/net/py-xmlrpc/files/patch-src_rpcClient.c b/net/py-xmlrpc/files/patch-src_rpcClient.c
new file mode 100644
index 000000000000..a5e1a8a060eb
--- /dev/null
+++ b/net/py-xmlrpc/files/patch-src_rpcClient.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- src/rpcClient.c
++++ src/rpcClient.c
+@@ -179,7 +179,7 @@
+ cp->url = NULL;
+ Py_DECREF(cp->src);
+ Py_DECREF(cp->disp);
+- PyMem_DEL(cp);
++ PyObject_DEL(cp);
+ }
+
+
diff --git a/net/py-xmlrpc/files/patch-src_rpcDate.c b/net/py-xmlrpc/files/patch-src_rpcDate.c
new file mode 100644
index 000000000000..f25424167d99
--- /dev/null
+++ b/net/py-xmlrpc/files/patch-src_rpcDate.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- src/rpcDate.c
++++ src/rpcDate.c
+@@ -75,7 +75,7 @@
+ if (dp->value) {
+ Py_DECREF(dp->value);
+ }
+- PyMem_DEL(dp);
++ PyObject_DEL(dp);
+ }
+
+
diff --git a/net/py-xmlrpc/files/patch-src_rpcDispatch.c b/net/py-xmlrpc/files/patch-src_rpcDispatch.c
new file mode 100644
index 000000000000..a552bb4edb4e
--- /dev/null
+++ b/net/py-xmlrpc/files/patch-src_rpcDispatch.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- src/rpcDispatch.c
++++ src/rpcDispatch.c
+@@ -68,7 +68,7 @@
+ rpcDispClear(dp);
+ free(dp->srcs);
+ }
+- PyMem_DEL(dp);
++ PyObject_DEL(dp);
+ }
+
+
diff --git a/net/py-xmlrpc/files/patch-src_rpcSource.c b/net/py-xmlrpc/files/patch-src_rpcSource.c
new file mode 100644
index 000000000000..afbf94f78b1a
--- /dev/null
+++ b/net/py-xmlrpc/files/patch-src_rpcSource.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- src/rpcSource.c
++++ src/rpcSource.c
+@@ -61,7 +61,7 @@
+ if (srcp->onErr and srcp->onErrType == ONERR_TYPE_PY) {
+ Py_DECREF((PyObject *)srcp->onErr);
+ }
+- PyMem_DEL(srcp);
++ PyObject_DEL(srcp);
+ }
+
+