mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[3.14] gh-135839: Fix module_traverse
and module_clear
in subinterp modules (GH-135937) (#135939)
gh-135839: Fix `module_traverse` and `module_clear` in subinterp modules (GH-135937)
(cherry picked from commit bcc2cbaa7f
)
Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
parent
8ef0398238
commit
6e5350d8b9
2 changed files with 4 additions and 8 deletions
|
@ -1706,8 +1706,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
|
||||
|
@ -1715,8 +1714,7 @@ module_clear(PyObject *mod)
|
|||
{
|
||||
module_state *state = get_module_state(mod);
|
||||
assert(state != NULL);
|
||||
(void)clear_module_state(state);
|
||||
return 0;
|
||||
return clear_module_state(state);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue