Skip to content

bpo-1635741: Fix winreg reference leaks - #31560

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:winreg_refleak
Feb 25, 2022
Merged

bpo-1635741: Fix winreg reference leaks#31560
vstinner merged 1 commit into
python:mainfrom
vstinner:winreg_refleak

Conversation

@vstinner

@vstinner vstinner commented Feb 25, 2022

Copy link
Copy Markdown
Member

Clear also the PyHKEY_Type static type at exit.

https://bugs.python.org/issue1635741

Clear also the PyHKEY_Type static type at exit.
@vstinner

Copy link
Copy Markdown
Member Author

With this range, it remains a leak of 1 reference on Windows:

$ python -I -X showrefcount -c pass
[1 refs, 1 blocks]
@vstinner
vstinner merged commit 4657bf7 into python:main Feb 25, 2022
@vstinner
vstinner deleted the winreg_refleak branch February 25, 2022 11:34
asvetlov pushed a commit that referenced this pull request Feb 26, 2022
Clear also the PyHKEY_Type static type at exit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants