This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Wesley-Jzy
Recipients Wesley-Jzy
Date 2021-07-09.07:42:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:56Wesley-Jzysetrecipients: + Wesley-Jzy
2021-07-09 07:42:56Wesley-Jzysetmessageid: <>
2021-07-09 07:42:56Wesley-Jzylinkissue44588 messages
2021-07-09 07:42:56Wesley-Jzycreate