From: Dong-hee Na Date: Sun, 12 Jun 2022 15:55:01 +0000 (+0900) Subject: gh-93747: Fix Refleak when handling multiple Py_tp_doc slots (gh-93749) X-Git-Tag: v3.12.0a1~1290 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae1ca74513e792b09c8057a87aa28715b5c9f50b;p=thirdparty%2FPython%2Fcpython.git gh-93747: Fix Refleak when handling multiple Py_tp_doc slots (gh-93749) --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index e57651446f88..18094bd43dd3 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;