mirror of https://github.com/python/cpython
gh-93747: Fix Refleak when handling multiple Py_tp_doc slots (gh-93749)
This commit is contained in:
parent
8f728e5baa
commit
ae1ca74513
|
@ -3569,7 +3569,7 @@ PyType_FromMetaclass(PyTypeObject *metaclass, PyObject *module,
|
|||
PyErr_SetString(
|
||||
PyExc_SystemError,
|
||||
"Multiple Py_tp_doc slots are not supported.");
|
||||
return NULL;
|
||||
goto finally;
|
||||
}
|
||||
if (slot->pfunc == NULL) {
|
||||
type->tp_doc = NULL;
|
||||
|
|
Loading…
Reference in New Issue