Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d81055

Browse files
sobolevnpull[bot]
authored andcommitted
gh-115498: Fix SET_COUNT error handling in _xxinterpchannelsmodule (#115499)
1 parent 5eea9be commit 9d81055

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_xxinterpchannelsmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2158,7 +2158,7 @@ new_channel_info(PyObject *mod, struct channel_info *info)
21582158
do { \
21592159
PyObject *obj = PyLong_FromLongLong(val); \
21602160
if (obj == NULL) { \
2161-
Py_CLEAR(info); \
2161+
Py_CLEAR(self); \
21622162
return NULL; \
21632163
} \
21642164
PyStructSequence_SET_ITEM(self, pos++, obj); \

0 commit comments

Comments
 (0)