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

This commit is contained in:
Kristjan Valur Jonsson 2012-12-21 11:20:53 +00:00
commit 3cbdaa3fee
1 changed files with 1 additions and 1 deletions

View File

@ -825,11 +825,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) {