mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Issue21393 Use CryptReleaseContext to release Crypt handle on Windows
This commit is contained in:
parent
e0bd2c5fad
commit
b8ac3e1a20
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ _PyRandom_Fini(void)
|
|||
{
|
||||
#ifdef MS_WINDOWS
|
||||
if (hCryptProv) {
|
||||
CloseHandle(hCryptProv);
|
||||
CryptReleaseContext(hCryptProv, 0);
|
||||
hCryptProv = 0;
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue