From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 25 Jun 2025 09:20:29 +0000 (+0200) Subject: [3.14] gh-135839: Fix `module_traverse` and `module_clear` in `_interpchannelsmodule... X-Git-Tag: v3.14.0b4~106 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=93a31bedd952023049cbb7051f55e59e2a5a91a0;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-135839: Fix `module_traverse` and `module_clear` in `_interpchannelsmodule` (GH-135840) (#135918) gh-135839: Fix `module_traverse` and `module_clear` in `_interpchannelsmodule` (GH-135840) (cherry picked from commit dd59c786cfb1018eb5abe877bfa7265ea9a3c2b9) Co-authored-by: sobolevn --- diff --git a/Modules/_interpchannelsmodule.c b/Modules/_interpchannelsmodule.c index ee5e2b005e0a..9c1f86151612 100644 --- a/Modules/_interpchannelsmodule.c +++ b/Modules/_interpchannelsmodule.c @@ -3614,8 +3614,7 @@ module_traverse(PyObject *mod, visitproc visit, void *arg) { module_state *state = get_module_state(mod); assert(state != NULL); - (void)traverse_module_state(state, visit, arg); - return 0; + return traverse_module_state(state, visit, arg); } static int @@ -3625,8 +3624,7 @@ module_clear(PyObject *mod) assert(state != NULL); // Now we clear the module state. - (void)clear_module_state(state); - return 0; + return clear_module_state(state); } static void