mirror of
https://github.com/python/cpython
synced 2024-09-16 00:48:28 +00:00
gh-104190: fix ubsan crash (#104191)
This commit is contained in:
parent
e5b8b19d99
commit
163034515a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue