From: Nikita Sobolev Date: Thu, 15 Feb 2024 21:31:23 +0000 (+0300) Subject: gh-115498: Fix `SET_COUNT` error handling in `_xxinterpchannelsmodule` (#115499) X-Git-Tag: v3.13.0a5~394 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd2bb4be3dd802b1957cf37fe68a3634ab054b2e;p=thirdparty%2FPython%2Fcpython.git gh-115498: Fix `SET_COUNT` error handling in `_xxinterpchannelsmodule` (#115499) --- diff --git a/Modules/_xxinterpchannelsmodule.c b/Modules/_xxinterpchannelsmodule.c index a2974aced12c..82d2ae7fc4c9 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); \