Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Decref after get_module_from_owned_type().
  • Loading branch information
ericsnowcurrently committed Oct 3, 2023
commit 47a2bf68c63ba8757580bf2c79feae6d2020059a
5 changes: 4 additions & 1 deletion Modules/_xxinterpchannelsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2468,7 +2468,10 @@ channel__channel_id(PyObject *self, PyObject *args, PyObject *kwds)
return NULL;
}
PyTypeObject *cls = state->ChannelIDType;
assert(get_module_from_owned_type(cls) == self);

PyObject *mod = get_module_from_owned_type(cls);
assert(mod == self);
Py_DECREF(mod);

return _channelid_new(self, cls, args, kwds);
}
Expand Down