]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-148074: Fix `typeobject.c` missing error return (#148075)
authorWulian233 <1055917385@qq.com>
Sat, 4 Apr 2026 15:34:55 +0000 (23:34 +0800)
committerGitHub <noreply@github.com>
Sat, 4 Apr 2026 15:34:55 +0000 (21:04 +0530)
Objects/typeobject.c

index b19aee6338dcc040831bd6359c6f3cf4879d3b47..0ac5377d168812e8d7547798e24b9f91949bd339 100644 (file)
@@ -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;