]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-146527: Fix memory leak in _PyGC_Fini() (GH-150969) (#150970)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 5 Jun 2026 14:11:37 +0000 (16:11 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Jun 2026 14:11:37 +0000 (14:11 +0000)
commit06ffcde725c6ee30c4717bd2c2375f6019d172c1
tree95af0e80573b700fd33b0b97e2d5cfbe551f74cd
parent68f814eb7151d7bd3e0780c78fcd9571f0312496
[3.15] gh-146527: Fix memory leak in _PyGC_Fini() (GH-150969) (#150970)

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 0036565e81b9580d645862bcc6249e2ae4f1fd03)

Co-authored-by: Victor Stinner <vstinner@python.org>
Python/gc.c