diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 7b2e2a3e5a4..0d6bf45032d 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -5064,6 +5064,7 @@ static void generic_alias_dealloc(PyGenericAliasObject *self) { Py_CLEAR(self->item); + Py_TYPE(self)->tp_free((PyObject *)self); } static PyObject *