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 5358251 commit a1f7e5aCopy full SHA for a1f7e5a
Modules/_ctypes/_ctypes.c
@@ -425,10 +425,11 @@ StructParam_clear(PyObject *myself)
425
static void
426
StructParam_dealloc(PyObject *myself)
427
{
428
- PyTypeObject *tp = Py_TYPE(myself);
+ StructParamObject *self = _StructParamObject_CAST(myself);
429
+ PyTypeObject *tp = Py_TYPE(self);
430
PyObject_GC_UnTrack(myself);
431
(void)StructParam_clear(myself);
- PyMem_Free(_StructParamObject_CAST(myself)->ptr);
432
+ PyMem_Free(self->ptr);
433
tp->tp_free(myself);
434
Py_DECREF(tp);
435
}
0 commit comments