From: Petr Viktorin Date: Thu, 10 Jul 2025 08:12:23 +0000 (+0200) Subject: gh-136476: Remove creation of unused list (GH-136494) X-Git-Tag: v3.15.0a1~1029 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b44316a0976fb3fcd50bae9d67b0810ee0252d93;p=thirdparty%2FPython%2Fcpython.git gh-136476: Remove creation of unused list (GH-136494) --- diff --git a/Modules/_remote_debugging_module.c b/Modules/_remote_debugging_module.c index 178c6d11357e..d72031137e0a 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;