mirror of
https://github.com/python/cpython.git
synced 2024-12-12 03:04:15 +08: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 New Issue
Block a user