]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in tracemalloc.c (#139450)
authorVictor Stinner <vstinner@python.org>
Wed, 1 Oct 2025 06:58:18 +0000 (08:58 +0200)
committerGitHub <noreply@github.com>
Wed, 1 Oct 2025 06:58:18 +0000 (08:58 +0200)
Python/tracemalloc.c

index 7a0853b6a07f550294c75c2b9be2c7b86fbb6a0b..005bdd378289e761f22bfd33bc23c212bdb8b05a 100644 (file)
@@ -230,7 +230,7 @@ tracemalloc_get_frame(_PyInterpreterFrame *pyframe, frame_t *frame)
     }
     frame->lineno = (unsigned int)lineno;
 
-    PyObject *filename = filename = _PyFrame_GetCode(pyframe)->co_filename;
+    PyObject *filename = _PyFrame_GetCode(pyframe)->co_filename;
     if (filename == NULL) {
 #ifdef TRACE_DEBUG
         tracemalloc_error("failed to get the filename of the code object");