Skip to content

Commit ae1ca74

Browse files
authored
gh-93747: Fix Refleak when handling multiple Py_tp_doc slots (gh-93749)
1 parent 8f728e5 commit ae1ca74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/typeobject.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3569,7 +3569,7 @@ PyType_FromMetaclass(PyTypeObject *metaclass, PyObject *module,
35693569
PyErr_SetString(
35703570
PyExc_SystemError,
35713571
"Multiple Py_tp_doc slots are not supported.");
3572-
return NULL;
3572+
goto finally;
35733573
}
35743574
if (slot->pfunc == NULL) {
35753575
type->tp_doc = NULL;

0 commit comments

Comments
 (0)