Message397188
The type_mro_modified() function in Object/typeobject.c may produce double Py_XDECREF on mro_meth and type_mro_meth when enter the code:
if (!_PyType_HasFeature(cls, Py_TPFLAGS_HAVE_VERSION_TAG) ||
!PyType_IsSubtype(type, cls)) {
goto clear;
}
I think
mro_meth = NULL;
type_mro_meth = NULL;
should be added after the first time Py_XDECREF them. |
|
Date |
User |
Action |
Args |
2021-07-09 07:42:56 | Wesley-Jzy | set | recipients:
+ Wesley-Jzy |
2021-07-09 07:42:56 | Wesley-Jzy | set | messageid: <1625816576.72.0.961811325194.issue44588@roundup.psfhosted.org> |
2021-07-09 07:42:56 | Wesley-Jzy | link | issue44588 messages |
2021-07-09 07:42:56 | Wesley-Jzy | create | |
|