Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-91048: Fix error path result in _remote_debugging_module (GH-134347)
(cherry picked from commit d327159)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
  • Loading branch information
pablogsal authored and miss-islington committed May 20, 2025
commit 5d68df7260d53cbe977d62f73ac84985dadc5a46
4 changes: 2 additions & 2 deletions Modules/_remote_debugging_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down
Loading