mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
gh-93747: Fix Refleak when handling multiple Py_tp_doc slots (gh-93749)
This commit is contained in:
parent
8f728e5baa
commit
ae1ca74513
1 changed files with 1 additions and 1 deletions
|
@ -3569,7 +3569,7 @@ PyType_FromMetaclass(PyTypeObject *metaclass, PyObject *module,
|
||||||
PyErr_SetString(
|
PyErr_SetString(
|
||||||
PyExc_SystemError,
|
PyExc_SystemError,
|
||||||
"Multiple Py_tp_doc slots are not supported.");
|
"Multiple Py_tp_doc slots are not supported.");
|
||||||
return NULL;
|
goto finally;
|
||||||
}
|
}
|
||||||
if (slot->pfunc == NULL) {
|
if (slot->pfunc == NULL) {
|
||||||
type->tp_doc = NULL;
|
type->tp_doc = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue