[Python-checkins] cpython (3.1): Don't DECREF the ctypes error_object without the GIL held.
kristjan.jonsson
python-checkins at python.org
Fri Dec 21 12:25:13 CET 2012
http://hg.python.org/cpython/rev/087ce7bbac9f
changeset: 80967:087ce7bbac9f
branch: 3.1
parent: 80782:03b3124e9ea3
user: Kristjan Valur Jonsson <sweskman at gmail.com>
date: Fri Dec 21 09:41:25 2012 +0000
summary:
Don't DECREF the ctypes error_object without the GIL held.
files:
Modules/_ctypes/callproc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
--- a/Modules/_ctypes/callproc.c
+++ b/Modules/_ctypes/callproc.c
@@ -834,11 +834,11 @@
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) {
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list