diff options
author | Kristjan Valur Jonsson <sweskman@gmail.com> | 2012-12-21 11:23:23 (GMT) |
---|---|---|
committer | Kristjan Valur Jonsson <sweskman@gmail.com> | 2012-12-21 11:23:23 (GMT) |
commit | 1724bb196a097b5de4a4b8d55e9a2072d6886ebb (patch) | |
tree | 0d3401079a9832e2ee36b7cde08c5c55c47cac78 /Modules/_ctypes | |
parent | 301162b43d13db686a1da09fbdcbe7875941be93 (diff) | |
parent | c51bafbbdaba456ee14de8c933f84d86489b5c91 (diff) | |
download | cpython-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')
-rw-r--r-- | Modules/_ctypes/callproc.c | 2 |
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) { |