diff options
author | Kristjan Valur Jonsson <sweskman@gmail.com> | 2012-12-21 10:32:57 +0000 |
---|---|---|
committer | Kristjan Valur Jonsson <sweskman@gmail.com> | 2012-12-21 10:32:57 +0000 |
commit | ed512a4d0969a93402e3d4245540dff24b0dce4c (patch) | |
tree | fe9792c6973f496309cf6a9480a6206b58ee6f67 | |
parent | ab7dd183f3e5671b20b9d6dae0bf2c22d4c8396b (diff) | |
download | cpython-git-ed512a4d0969a93402e3d4245540dff24b0dce4c.tar.gz |
ctypes: DECREF error_object _after_ re-acquiring GIL
-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 ef3e97408c..23825a7110 100644 --- a/Modules/_ctypes/callproc.c +++ b/Modules/_ctypes/callproc.c @@ -844,11 +844,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) { |