◐ Shell
clean mode source ↗

gh-146527: Fix memory leak in _PyGC_Fini() by vstinner · Pull Request #150969 · python/cpython

Free generation_stats allocated by _PyGC_Init().

Fix Python/gc.c: Python/gc_free_threading.c was already fixed.

@vstinner

pablogsal

vstinner added a commit that referenced this pull request

Jun 5, 2026
gh-146527: Fix memory leak in _PyGC_Fini() (GH-150969)

Free generation_stats allocated by _PyGC_Init().

Fix Python/gc.c: Python/gc_free_threading.c was already fixed.
(cherry picked from commit 0036565)

Co-authored-by: Victor Stinner <vstinner@python.org>

philthompson10 pushed a commit to philthompson10/cpython that referenced this pull request

Jun 17, 2026
Free generation_stats allocated by _PyGC_Init().

Fix Python/gc.c: Python/gc_free_threading.c was already fixed.