Skip to content

Commit 14e2553

Browse files
committed
pythongh-128679: Clear the ref trace in _PyTraceMalloc_Stop()
_PyTraceMalloc_Stop() now calls PyRefTracer_SetTracer(NULL, NULL).
1 parent eed7865 commit 14e2553

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/tracemalloc.c

Lines changed: 2 additions & 0 deletions
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)