mirror of https://github.com/python/cpython
Issue21393 Use CryptReleaseContext to release Crypt handle on Windows
This commit is contained in:
parent
e0bd2c5fad
commit
b8ac3e1a20
|
@ -298,7 +298,7 @@ _PyRandom_Fini(void)
|
|||
{
|
||||
#ifdef MS_WINDOWS
|
||||
if (hCryptProv) {
|
||||
CloseHandle(hCryptProv);
|
||||
CryptReleaseContext(hCryptProv, 0);
|
||||
hCryptProv = 0;
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue