{{ message }}
gh-146527: Fix memory leak in _PyGC_Fini()#150969
Merged
vstinner merged 2 commits intoJun 5, 2026
Merged
Conversation
Free generation_stats allocated by _PyGC_Init(). Fix Python/gc.c: Python/gc_free_threading.c was already fixed.
Member
Author
|
For example, the leak can be seen with Valgrind. I found the leak when building Python with ASAN. |
Sorry, something went wrong.
pablogsal
approved these changes
Jun 5, 2026
Member
|
Thanks victor! |
Sorry, something went wrong.
Hide details
View details
vstinner
merged commit
0036565
into
python:main
Jun 5, 2026
56 checks passed
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15. |
Sorry, something went wrong.
Contributor
|
Thanks! |
Sorry, something went wrong.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.
Free generation_stats allocated by _PyGC_Init().
Fix Python/gc.c: Python/gc_free_threading.c was already fixed.