Commit 3cbdaa3f authored by Kristjan Valur Jonsson's avatar Kristjan Valur Jonsson

Merge with 3.1 : Don't DECREF the ctypes error_object without the GIL held.

parents 7bd61cbc 9946bd69
...@@ -825,11 +825,11 @@ static int _call_function_pointer(int flags, ...@@ -825,11 +825,11 @@ static int _call_function_pointer(int flags,
space[0] = errno; space[0] = errno;
errno = temp; errno = temp;
} }
Py_XDECREF(error_object);
#ifdef WITH_THREAD #ifdef WITH_THREAD
if ((flags & FUNCFLAG_PYTHONAPI) == 0) if ((flags & FUNCFLAG_PYTHONAPI) == 0)
Py_BLOCK_THREADS Py_BLOCK_THREADS
#endif #endif
Py_XDECREF(error_object);
#ifdef MS_WIN32 #ifdef MS_WIN32
#ifndef DONT_USE_SEH #ifndef DONT_USE_SEH
if (dwExceptionCode) { if (dwExceptionCode) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment