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

This commit is contained in:
Petr Viktorin 2025-07-10 10:12:23 +02:00 committed by GitHub
parent 61dd9fdad7
commit b44316a097
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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;