Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46f1c78 commit 8dbad09Copy full SHA for 8dbad09
1 file changed
Modules/_ctypes/_ctypes.c
@@ -5487,6 +5487,14 @@ static void
5487
comerror_dealloc(PyObject *self)
5488
{
5489
PyTypeObject *tp = Py_TYPE(self);
5490
+ PyBaseExceptionObject *obj = (PyBaseExceptionObject *) self;
5491
+
5492
+ Py_CLEAR(obj->dict);
5493
+ Py_CLEAR(obj->args);
5494
+ Py_CLEAR(obj->notes);
5495
+ Py_CLEAR(obj->traceback);
5496
+ Py_CLEAR(obj->cause);
5497
+ Py_CLEAR(obj->context);
5498
PyObject_GC_UnTrack(self);
5499
tp->tp_free(self);
5500
Py_DECREF(tp);
0 commit comments