]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-136476: Remove creation of unused list (GH-136494) (GH-136495)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 10 Jul 2025 08:36:48 +0000 (10:36 +0200)
committerGitHub <noreply@github.com>
Thu, 10 Jul 2025 08:36:48 +0000 (08:36 +0000)
(cherry picked from commit b44316a0976fb3fcd50bae9d67b0810ee0252d93)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Modules/_remote_debugging_module.c

index 0dc797a9da82a0e94d50a48535ef3eb152f97634..a2619de0510b59bfa856a7a965afeb13664b3f6e 100644 (file)
@@ -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;