diff options
author | Kristjan Valur Jonsson <sweskman@gmail.com> | 2012-12-21 09:41:25 (GMT) |
---|---|---|
committer | Kristjan Valur Jonsson <sweskman@gmail.com> | 2012-12-21 09:41:25 (GMT) |
commit | 9946bd69fadefdb1a4f68ae2770eae9b09a3ed86 (patch) | |
tree | d139b81ac3e22b979e27a2e6e943f3dc64ff69f6 | |
parent | 0ee20ebbff9624017709c35f2fe0a4e163ed9007 (diff) | |
download | cpython-9946bd69fadefdb1a4f68ae2770eae9b09a3ed86.zip cpython-9946bd69fadefdb1a4f68ae2770eae9b09a3ed86.tar.gz cpython-9946bd69fadefdb1a4f68ae2770eae9b09a3ed86.tar.bz2 |
Don't DECREF the ctypes error_object without the GIL held.
-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 41a90f6..e7b53b8 100644 --- a/Modules/_ctypes/callproc.c +++ b/Modules/_ctypes/callproc.c @@ -834,11 +834,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) { |