gh-93747: Fix Refleak when handling multiple Py_tp_doc slots (gh-93749)

This commit is contained in:
Dong-hee Na 2022-06-13 00:55:01 +09:00 committed by GitHub
parent 8f728e5baa
commit ae1ca74513
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;