Skip to content

Commit 32edf1d

Browse files
sobolevndiegorusso
authored andcommitted
pythongh-115498: Fix SET_COUNT error handling in _xxinterpchannelsmodule (python#115499)
1 parent fe1f3e3 commit 32edf1d

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)