https://github.com/python/cpython/commit/fd2bb4be3dd802b1957cf37fe68a3634ab054b2e
commit: fd2bb4be3dd802b1957cf37fe68a3634ab054b2e
branch: main
author: Nikita Sobolev <[email protected]>
committer: sobolevn <[email protected]>
date: 2024-02-16T00:31:23+03:00
summary:

gh-115498: Fix `SET_COUNT` error handling in `_xxinterpchannelsmodule` (#115499)

files:
M Modules/_xxinterpchannelsmodule.c

diff --git a/Modules/_xxinterpchannelsmodule.c 
b/Modules/_xxinterpchannelsmodule.c
index a2974aced12ca0..82d2ae7fc4c963 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); \

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to