diff options
| author | Christian Heimes <christian@python.org> | 2020-06-27 14:13:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-27 14:13:47 +0200 |
| commit | 9cfcdb7d6e4d09bde63bc7116b2ab0d96724527e (patch) | |
| tree | 8bb0df607e4c0cb967ea653a3c1801c4ea9cbeab | |
| parent | 20a79021753ab26a5989e6d3397160e52973870e (diff) | |
| download | cpython-git-9cfcdb7d6e4d09bde63bc7116b2ab0d96724527e.tar.gz | |
Remove dead code from tracemalloc (GH-21029)
tracemalloc_get_frame() checked filename == NULL two times in a row.
Signed-off-by: Christian Heimes <christian@python.org>
| -rw-r--r-- | Modules/_tracemalloc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c index 5675716574..fc91622d39 100644 --- a/Modules/_tracemalloc.c +++ b/Modules/_tracemalloc.c @@ -319,10 +319,6 @@ tracemalloc_get_frame(PyFrameObject *pyframe, frame_t *frame) return; } - assert(filename != NULL); - if (filename == NULL) - return; - if (!PyUnicode_Check(filename)) { #ifdef TRACE_DEBUG tracemalloc_error("filename is not a unicode string"); |
