From: sunmy2019 <59365878+sunmy2019@users.noreply.github.com> Date: Fri, 5 May 2023 09:54:03 +0000 (+0800) Subject: gh-104190: fix ubsan crash (#104191) X-Git-Tag: v3.12.0b1~266 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=163034515a81f137d1dd7d289dc048eb0f1cd424;p=thirdparty%2FPython%2Fcpython.git gh-104190: fix ubsan crash (#104191) --- diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index ae70a33eb4d1..376f04f23e32 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -4221,7 +4221,7 @@ PyInit__testcapi(void) return NULL; } int ret = PyModule_AddType(m, (PyTypeObject*)ObjExtraData_Type); - Py_DECREF(&ObjExtraData_Type); + Py_DECREF(ObjExtraData_Type); if (ret < 0) { return NULL; }