diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2009-02-27 01:35:30 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2009-02-27 01:35:30 +0000 |
commit | 3ea81dfd171549f5ce1fafd879aced6a6b46c232 (patch) | |
tree | 66e824d833c5cc3655b5bfa40e872abadf3b9d59 /net/py-xmlrpc | |
parent | db6334fcb0179e9a2afa72167b94e4e950c53032 (diff) | |
download | ports-3ea81dfd171549f5ce1fafd879aced6a6b46c232.tar.gz ports-3ea81dfd171549f5ce1fafd879aced6a6b46c232.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
Notes
Notes:
svn path=/head/; revision=229121
Diffstat (limited to 'net/py-xmlrpc')
-rw-r--r-- | net/py-xmlrpc/Makefile | 1 | ||||
-rw-r--r-- | net/py-xmlrpc/files/patch-src_rpcBase64.c | 14 | ||||
-rw-r--r-- | net/py-xmlrpc/files/patch-src_rpcBoolean.c | 14 | ||||
-rw-r--r-- | net/py-xmlrpc/files/patch-src_rpcClient.c | 14 | ||||
-rw-r--r-- | net/py-xmlrpc/files/patch-src_rpcDate.c | 14 | ||||
-rw-r--r-- | net/py-xmlrpc/files/patch-src_rpcDispatch.c | 14 | ||||
-rw-r--r-- | net/py-xmlrpc/files/patch-src_rpcSource.c | 14 |
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); + } + + |