diff options
Diffstat (limited to 'Modules/_tracemalloc.c')
-rw-r--r-- | Modules/_tracemalloc.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c index 3593baee51..b2a0003021 100644 --- a/Modules/_tracemalloc.c +++ b/Modules/_tracemalloc.c @@ -347,13 +347,6 @@ tracemalloc_get_frame(PyFrameObject *pyframe, frame_t *frame) frame->lineno = (unsigned int)lineno; code = PyFrame_GetCode(pyframe); - if (code == NULL) { -#ifdef TRACE_DEBUG - tracemalloc_error("failed to get the code object of the frame"); -#endif - return; - } - if (code->co_filename == NULL) { #ifdef TRACE_DEBUG tracemalloc_error("failed to get the filename of the code object"); |