[3.14] gh-91048: Fix error path result in _remote_debugging_module (GH-134347) (#134399)

This commit is contained in:
Miss Islington (bot) 2025-05-21 02:20:53 +02:00 committed by GitHub
parent 81c348b6da
commit e379a71811
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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