From fd2bb4be3dd802b1957cf37fe68a3634ab054b2e Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Fri, 16 Feb 2024 00:31:23 +0300 Subject: gh-115498: Fix `SET_COUNT` error handling in `_xxinterpchannelsmodule` (#115499) --- Modules/_xxinterpchannelsmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); \ -- cgit v0.12