mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.14] gh-91048: Fix error path result in _remote_debugging_module (GH-134347) (#134399)
This commit is contained in:
parent
81c348b6da
commit
e379a71811
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue