diff --git a/Objects/typeobject.c b/Objects/typeobject.c index e57651446f888f..18094bd43dd3a1 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -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;