]> granicus.if.org Git - python/commit
bpo-37702: Fix SSL's certificate-store leak on Windows (GH-15632)
authorSteve Dower <steve.dower@python.org>
Mon, 9 Sep 2019 13:48:22 +0000 (06:48 -0700)
committerGitHub <noreply@github.com>
Mon, 9 Sep 2019 13:48:22 +0000 (06:48 -0700)
commit5d695b6b7bcccf5f028cdacd986096de15bc0ca6
tree2f6d1cca58d355ad8b0f7c1ccdbd8220a0cb6d01
parent5e053eb98eb0d65a8e0f00b3641f9907198aace3
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.
Misc/NEWS.d/next/Windows/2019-07-29-16-49-31.bpo-37702.Lj2f5e.rst [new file with mode: 0644]
Modules/_ssl.c