[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 dd59c786cf)

Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
Miss Islington (bot) 2025-06-25 11:20:29 +02:00 committed by GitHub
parent 349f4c24f9
commit 93a31bedd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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