From: Wulian233 <1055917385@qq.com> Date: Sat, 4 Apr 2026 15:34:55 +0000 (+0800) Subject: gh-148074: Fix `typeobject.c` missing error return (#148075) X-Git-Tag: v3.15.0a8~41 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c398490fbf15ede5de3389b4ca4e32fb9a7c5d67;p=thirdparty%2FPython%2Fcpython.git gh-148074: Fix `typeobject.c` missing error return (#148075) --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index b19aee6338dc..0ac5377d1688 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -9345,6 +9345,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;