https://github.com/python/cpython/commit/78804219832a3965784093c76132beeadc762dc0 commit: 78804219832a3965784093c76132beeadc762dc0 branch: 3.14 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: encukou <encu...@gmail.com> date: 2025-07-10T08:36:48Z summary:
[3.14] gh-136476: Remove creation of unused list (GH-136494) (GH-136495) (cherry picked from commit b44316a0976fb3fcd50bae9d67b0810ee0252d93) Co-authored-by: Petr Viktorin <encu...@gmail.com> files: M Modules/_remote_debugging_module.c diff --git a/Modules/_remote_debugging_module.c b/Modules/_remote_debugging_module.c index 0dc797a9da82a0..a2619de0510b59 100644 --- a/Modules/_remote_debugging_module.c +++ b/Modules/_remote_debugging_module.c @@ -2213,12 +2213,6 @@ static int return -1; } - PyObject *frames = PyList_New(0); - if (frames == NULL) { - set_exception_cause(unwinder, PyExc_MemoryError, "Failed to create frames list"); - return -1; - } - while ((void*)address_of_current_frame != NULL) { PyObject* frame_info = NULL; uintptr_t address_of_code_object; _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: arch...@mail-archive.com