summaryrefslogtreecommitdiffstats
path: root/Modules/_ctypes/callproc.c
diff options
context:
space:
mode:
authorKristjan Valur Jonsson <sweskman@gmail.com>2012-12-21 11:23:23 (GMT)
committerKristjan Valur Jonsson <sweskman@gmail.com>2012-12-21 11:23:23 (GMT)
commit1724bb196a097b5de4a4b8d55e9a2072d6886ebb (patch)
tree0d3401079a9832e2ee36b7cde08c5c55c47cac78 /Modules/_ctypes/callproc.c
parent301162b43d13db686a1da09fbdcbe7875941be93 (diff)
parentc51bafbbdaba456ee14de8c933f84d86489b5c91 (diff)
downloadcpython-1724bb196a097b5de4a4b8d55e9a2072d6886ebb.zip
cpython-1724bb196a097b5de4a4b8d55e9a2072d6886ebb.tar.gz
cpython-1724bb196a097b5de4a4b8d55e9a2072d6886ebb.tar.bz2
Merge with 3.3 : Don't DECREF the ctypes error_object without the GIL held.
Diffstat (limited to 'Modules/_ctypes/callproc.c')
-rw-r--r--Modules/_ctypes/callproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
index 058e04e..966ec57 100644
--- a/Modules/_ctypes/callproc.c
+++ b/Modules/_ctypes/callproc.c
@@ -817,11 +817,11 @@ static int _call_function_pointer(int flags,
space[0] = errno;
errno = temp;
}
- Py_XDECREF(error_object);
#ifdef WITH_THREAD
if ((flags & FUNCFLAG_PYTHONAPI) == 0)
Py_BLOCK_THREADS
#endif
+ Py_XDECREF(error_object);
#ifdef MS_WIN32
#ifndef DONT_USE_SEH
if (dwExceptionCode) {