Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Open
Description
In some cases type->tp_mro can be NULL and the new_mro variable can get a null value from the lookup_tp_mro call in the mro_hierarchy function.
Line 1654 in5f50541
PyObject*new_mro=lookup_tp_mro(type); |
In this case, there may be problems with calling the Py_NewRef and the Py_DECREF functions.
Line 1658 in5f50541
tuple=PyTuple_Pack(3,type,new_mro,old_mro); |
Line 1661 in5f50541
tuple=PyTuple_Pack(2,type,new_mro); |
Line 1674 in5f50541
Py_DECREF(new_mro); |