diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2011-09-12 19:03:36 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2011-09-12 19:03:36 (GMT) |
commit | bbe46d63ee9b624c011b4fe50978e2e7fa7cf82e (patch) | |
tree | b8ffdf974ee62f8164b0ed12ac67b0580faf5576 /Modules | |
parent | 1d7deafeea8fad9c58480f646e7ac125105288c5 (diff) | |
download | cpython-bbe46d63ee9b624c011b4fe50978e2e7fa7cf82e.zip cpython-bbe46d63ee9b624c011b4fe50978e2e7fa7cf82e.tar.gz cpython-bbe46d63ee9b624c011b4fe50978e2e7fa7cf82e.tar.bz2 |
Issue #12483: ctypes: Fix a crash when the destruction of a callback
object triggers the garbage collector.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/callbacks.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_ctypes/callbacks.c b/Modules/_ctypes/callbacks.c index d23509f..34c46ad 100644 --- a/Modules/_ctypes/callbacks.c +++ b/Modules/_ctypes/callbacks.c @@ -13,6 +13,7 @@ static void CThunkObject_dealloc(PyObject *_self) { CThunkObject *self = (CThunkObject *)_self; + PyObject_GC_UnTrack(self); Py_XDECREF(self->converters); Py_XDECREF(self->callable); Py_XDECREF(self->restype); |