Skip to content

Commit

Permalink
=> PyModule_AddObjectREF
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Jun 9, 2023
1 parent cb1effb commit 143c3e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/pyexpat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1812,7 +1812,7 @@ add_errors_module(PyObject *mod)
goto error;
}

rc = PyModule_AddObject(errors_module, "messages", rev_codes_dict);
rc = PyModule_AddObjectRef(errors_module, "messages", rev_codes_dict);
Py_CLEAR(rev_codes_dict);
if (rc < 0) {
goto error;
Expand Down

0 comments on commit 143c3e3

Please sign in to comment.