https://github.com/python/cpython/commit/b44316a0976fb3fcd50bae9d67b0810ee0252d93
commit: b44316a0976fb3fcd50bae9d67b0810ee0252d93
branch: main
author: Petr Viktorin <encu...@gmail.com>
committer: encukou <encu...@gmail.com>
date: 2025-07-10T08:12:23Z
summary:

gh-136476: Remove creation of unused list (GH-136494)

files:
M Modules/_remote_debugging_module.c

diff --git a/Modules/_remote_debugging_module.c 
b/Modules/_remote_debugging_module.c
index 178c6d11357e5e..d72031137e0a4e 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

Reply via email to