Skip to content

Commit

Permalink
gh-104190: fix ubsan crash (#104191)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunmy2019 authored May 5, 2023
1 parent e5b8b19 commit 1630345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_testcapimodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1630345

Please sign in to comment.