Skip to content

Commit fd2bb4b

Browse files
authored
gh-115498: Fix SET_COUNT error handling in _xxinterpchannelsmodule (#115499)
1 parent 26f23da commit fd2bb4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_xxinterpchannelsmodule.c

+1-1
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)