]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37702: Fix SSL's certificate-store leak on Windows (GH-15632)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 9 Sep 2019 13:40:42 +0000 (06:40 -0700)
committerGitHub <noreply@github.com>
Mon, 9 Sep 2019 13:40:42 +0000 (06:40 -0700)
commit472f37ab9a33050d7d50d1ebe33ba324a51c52c2
treed99baf4903cd6f2a73eb7b68151e635965b6c76f
parent64f7f6efa0b6ccd5f942b0dd7c63978957d1660e
bpo-37702: Fix SSL's certificate-store leak on Windows (GH-15632)

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.
(cherry picked from commit ed70129e15ea028469145111044a4349960a4e6f)

Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Misc/NEWS.d/next/Windows/2019-07-29-16-49-31.bpo-37702.Lj2f5e.rst [new file with mode: 0644]
Modules/_ssl.c