From ae1ca74513e792b09c8057a87aa28715b5c9f50b Mon Sep 17 00:00:00 2001 From: Dong-hee Na Date: Mon, 13 Jun 2022 00:55:01 +0900 Subject: [PATCH] gh-93747: Fix Refleak when handling multiple Py_tp_doc slots (gh-93749) --- Objects/typeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;