Commit b8ac3e1a authored by Tim Golden's avatar Tim Golden

Issue21393 Use CryptReleaseContext to release Crypt handle on Windows

parent e0bd2c5f
......@@ -298,7 +298,7 @@ _PyRandom_Fini(void)
{
#ifdef MS_WINDOWS
if (hCryptProv) {
CloseHandle(hCryptProv);
CryptReleaseContext(hCryptProv, 0);
hCryptProv = 0;
}
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment