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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy