mirror of
https://github.com/python/cpython.git
synced 2025-09-25 09:50:37 +00:00
ctypes: DECREF error_object _after_ re-acquiring GIL
This commit is contained in:
parent
ab7dd183f3
commit
ed512a4d09
1 changed files with 1 additions and 1 deletions
|
@ -844,11 +844,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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue