Skip to content

[3.8] bpo-37702: Fix SSL's certificate-store leak on Windows (GH-15632) #15771

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

Merged
merged 1 commit into from
Sep 9, 2019

Conversation

zooba
Copy link
Member

@zooba zooba commented Sep 9, 2019

ssl_collect_certificates function in _ssl.c has a memory leak.
Calling CertOpenStore() and CertAddStoreToCollection(), a store's refcnt gets incremented by 2.
But CertCloseStore() is called only once and the refcnt leaves 1.

https://bugs.python.org/issue37702

ssl_collect_certificates function in _ssl.c has a memory leak.
Calling CertOpenStore() and CertAddStoreToCollection(), a store's refcnt gets incremented by 2.
But CertCloseStore() is called only once and the refcnt leaves 1.
@zooba zooba requested a review from tiran as a code owner September 9, 2019 12:35
@bedevere-bot bedevere-bot added type-bug An unexpected behavior, bug, or error awaiting core review labels Sep 9, 2019
@zooba zooba merged commit 5d695b6 into python:3.8 Sep 9, 2019
@zooba zooba deleted the bpo-37702-3.8 branch September 9, 2019 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants