8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
_xxinterpchannelsmodule
1 parent b96b344 commit 262003fCopy full SHA for 262003f
Modules/_xxinterpchannelsmodule.c
@@ -174,7 +174,9 @@ static int
174
clear_module_state(module_state *state)
175
{
176
/* heap types */
177
- (void)_PyCrossInterpreterData_UnregisterClass(state->ChannelIDType);
+ if (state->ChannelIDType != NULL) {
178
+ (void)_PyCrossInterpreterData_UnregisterClass(state->ChannelIDType);
179
+ }
180
Py_CLEAR(state->ChannelIDType);
181
182
/* exceptions */
@@ -2269,7 +2271,6 @@ module_exec(PyObject *mod)
2269
2271
return 0;
2270
2272
2273
error:
2274
_globals_fini();
2275
return -1;
2276
}
0 commit comments