Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-1635741: Fix winreg reference leaks #31560

Merged
merged 1 commit into from
Feb 25, 2022
Merged

bpo-1635741: Fix winreg reference leaks #31560

merged 1 commit into from
Feb 25, 2022

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Feb 25, 2022

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
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants