Skip to content
Closed
Prev Previous commit
Next Next commit
revert this as this would be intended at gh-104796
  • Loading branch information
sunmy2019 committed May 30, 2023
commit 2ee60e227ff46d7ef2d90d5837eb05d5ce4a8b32
5 changes: 2 additions & 3 deletions Modules/_testsinglephase.c
Comment thread
sunmy2019 marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,10 @@ init_module(PyObject *module, module_state *state)
if (initialized == NULL) {
return -1;
}
int rc = PyModule_AddObjectRef(module, "_module_initialized", initialized);
Py_DECREF(initialized);
if (rc != 0) {
if (PyModule_AddObjectRef(module, "_module_initialized", initialized) != 0) {
return -1;
}

return 0;
}

Expand Down