From 9c1383350cee38336be07c2e79ebf85dee5da217 Mon Sep 17 00:00:00 2001 From: Wulian233 <1055917385@qq.com> Date: Sat, 4 Apr 2026 23:34:55 +0800 Subject: [PATCH] gh-148074: Fix `typeobject.c` missing error return (GH-148075) (cherry picked from commit c398490fbf15ede5de3389b4ca4e32fb9a7c5d67) Co-authored-by: Wulian233 <1055917385@qq.com> --- Objects/typeobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index e58578d310b75c..0db171807aca4b 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -8908,6 +8908,7 @@ type_ready_post_checks(PyTypeObject *type) PyErr_Format(PyExc_SystemError, "type %s has a tp_dictoffset that is too small", type->tp_name); + return -1; } } return 0;