]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-136476: Remove creation of unused list (GH-136494)
authorPetr Viktorin <encukou@gmail.com>
Thu, 10 Jul 2025 08:12:23 +0000 (10:12 +0200)
committerGitHub <noreply@github.com>
Thu, 10 Jul 2025 08:12:23 +0000 (08:12 +0000)
Modules/_remote_debugging_module.c

index 178c6d11357e5ebb772f8e587d103eb0be935274..d72031137e0a4ec59b8def58112ac2b625f6f433 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;