From 7ea82d9f8a27d36d0e3ab9d8d6e92d766bb815e6 Mon Sep 17 00:00:00 2001 From: Dong-hee Na Date: Sun, 12 Jun 2022 23:51:31 +0900 Subject: [PATCH] gh-93747: Fix Refleak when handling multiple Py_tp_doc slots --- 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;