[3.13] gh-128679: Clear the ref tracer in _PyTraceMalloc_Stop() (#129258)

_PyTraceMalloc_Stop() now calls PyRefTracer_SetTracer(NULL, NULL).
This commit is contained in:
Victor Stinner 2025-01-24 14:54:02 +01:00 committed by GitHub
parent eed7865cee
commit 1ee321b4c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -986,6 +986,8 @@ _PyTraceMalloc_Stop(void)
raw_free(tracemalloc_traceback);
tracemalloc_traceback = NULL;
(void)PyRefTracer_SetTracer(NULL, NULL);
done:
TABLES_UNLOCK();
}