Skip to content

Commit

Permalink
pythongh-104190: fix ubsan crash (python#104191)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunmy2019 authored and jbower-fb committed May 8, 2023
1 parent 248b78b commit 3205457
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 3205457

Please sign in to comment.