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
  • Loading branch information
pablogsal committed May 20, 2025
commit f4f5a00b5b0999646cc1d760cc81e83f88701602
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