gh-115498: Fix SET_COUNT error handling in _xxinterpchannelsmodule (#115499)

This commit is contained in:
Nikita Sobolev 2024-02-16 00:31:23 +03:00 committed by GitHub
parent 26f23daa1e
commit fd2bb4be3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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); \