Skip to content

Commit b108477

Browse files
Clean up the heap types.
1 parent 2470b86 commit b108477

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Modules/_xxsubinterpretersmodule.c

+6
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ get_module_state(PyObject *mod)
145145
static int
146146
traverse_module_state(module_state *state, visitproc visit, void *arg)
147147
{
148+
/* heap types */
149+
Py_VISIT(state->ChannelIDType);
150+
148151
/* interpreter exceptions */
149152
Py_VISIT(state->RunFailedError);
150153

@@ -160,6 +163,9 @@ traverse_module_state(module_state *state, visitproc visit, void *arg)
160163
static int
161164
clear_module_state(module_state *state)
162165
{
166+
/* heap types */
167+
Py_CLEAR(state->ChannelIDType);
168+
163169
/* interpreter exceptions */
164170
Py_CLEAR(state->RunFailedError);
165171

0 commit comments

Comments
 (0)