https://github.com/python/cpython/commit/d327159eb4dd286973d10af93999de90a860880a commit: d327159eb4dd286973d10af93999de90a860880a branch: main author: Pablo Galindo Salgado <pablog...@gmail.com> committer: pablogsal <pablog...@gmail.com> date: 2025-05-20T19:54:09-04:00 summary:
gh-91048: Fix error path result in _remote_debugging_module (#134347) files: M Modules/_remote_debugging_module.c diff --git a/Modules/_remote_debugging_module.c b/Modules/_remote_debugging_module.c index 42db93bb5ead0f..8c0f40f835c36e 100644 --- a/Modules/_remote_debugging_module.c +++ b/Modules/_remote_debugging_module.c @@ -1556,7 +1556,7 @@ get_stack_trace(PyObject* self, PyObject* args) &address_of_current_frame) < 0) { - Py_DECREF(result); + Py_CLEAR(result); goto result_err; } @@ -1565,7 +1565,7 @@ get_stack_trace(PyObject* self, PyObject* args) } if (PyList_Append(result, frame_info) == -1) { - Py_DECREF(result); + Py_CLEAR(result); goto result_err; } _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com