mirror of https://github.com/python/cpython
gh-115498: Fix `SET_COUNT` error handling in `_xxinterpchannelsmodule` (#115499)
This commit is contained in:
parent
26f23daa1e
commit
fd2bb4be3d
|
@ -2158,7 +2158,7 @@ new_channel_info(PyObject *mod, struct channel_info *info)
|
|||
do { \
|
||||
PyObject *obj = PyLong_FromLongLong(val); \
|
||||
if (obj == NULL) { \
|
||||
Py_CLEAR(info); \
|
||||
Py_CLEAR(self); \
|
||||
return NULL; \
|
||||
} \
|
||||
PyStructSequence_SET_ITEM(self, pos++, obj); \
|
||||
|
|
Loading…
Reference in New Issue