]> granicus.if.org Git - python/commit
bpo-37702: Fix SSL's certificate-store leak on Windows (GH-15632)
authorneonene <53406459+neonene@users.noreply.github.com>
Mon, 9 Sep 2019 12:33:43 +0000 (21:33 +0900)
committerSteve Dower <steve.dower@python.org>
Mon, 9 Sep 2019 12:33:43 +0000 (05:33 -0700)
commited70129e15ea028469145111044a4349960a4e6f
tree460ba098e0afe9dab035f62e1f08f67d074a82d4
parentb4612f5d54aced5bc37f1b85bf50b4cafa2480f0
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