Skip to content

Commit 7ea82d9

Browse files
committed
gh-93747: Fix Refleak when handling multiple Py_tp_doc slots
1 parent 3473817 commit 7ea82d9

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)