summaryrefslogtreecommitdiffstats
path: root/Modules/_xxinterpchannelsmodule.c
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2024-02-15 21:31:23 (GMT)
committerGitHub <noreply@github.com>2024-02-15 21:31:23 (GMT)
commitfd2bb4be3dd802b1957cf37fe68a3634ab054b2e (patch)
tree1ebc9c55edd2b7d067ae9958e5bd3b65b8ffdb90 /Modules/_xxinterpchannelsmodule.c
parent26f23daa1ea30dea368f00c2131017cef2586adc (diff)
downloadcpython-fd2bb4be3dd802b1957cf37fe68a3634ab054b2e.zip
cpython-fd2bb4be3dd802b1957cf37fe68a3634ab054b2e.tar.gz
cpython-fd2bb4be3dd802b1957cf37fe68a3634ab054b2e.tar.bz2
gh-115498: Fix `SET_COUNT` error handling in `_xxinterpchannelsmodule` (#115499)
Diffstat (limited to 'Modules/_xxinterpchannelsmodule.c')
-rw-r--r--Modules/_xxinterpchannelsmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_xxinterpchannelsmodule.c b/Modules/_xxinterpchannelsmodule.c
index a2974ac..82d2ae7 100644
--- a/Modules/_xxinterpchannelsmodule.c
+++ b/Modules/_xxinterpchannelsmodule.c
@@ -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); \