Skip to content

Commit 1ee321b

Browse files
authored
[3.13] gh-128679: Clear the ref tracer in _PyTraceMalloc_Stop() (#129258)
_PyTraceMalloc_Stop() now calls PyRefTracer_SetTracer(NULL, NULL).
1 parent eed7865 commit 1ee321b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/tracemalloc.c

+2
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,8 @@ _PyTraceMalloc_Stop(void)
986986
raw_free(tracemalloc_traceback);
987987
tracemalloc_traceback = NULL;
988988

989+
(void)PyRefTracer_SetTracer(NULL, NULL);
990+
989991
done:
990992
TABLES_UNLOCK();
991993
}

0 commit comments

Comments
 (0)