mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-91048: Fix error path result in _remote_debugging_module (#134347)
This commit is contained in:
parent
6856a04d68
commit
d327159eb4
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