mirror of
https://github.com/python/cpython.git
synced 2026-04-20 10:51:00 +00:00
clearEntries() only freed the top currentProfilerContext but did not walk the previous linked list. When clear() is called during active profiling with nested calls, all contexts except the top one were leaked. Fix by iterating the entire linked list, matching the existing freelistProfilerContext cleanup pattern. Co-authored-by: Victor Stinner <vstinner@python.org> |
||
|---|---|---|
| .. | ||
| test_sampling_profiler | ||
| __init__.py | ||
| __main__.py | ||
| test_heatmap.py | ||
| test_tracing_profiler.py | ||