From b8ac3e1a205c79a37dbb7365a87b498e194eebdd Mon Sep 17 00:00:00 2001 From: Tim Golden Date: Tue, 6 May 2014 13:29:45 +0100 Subject: Issue21393 Use CryptReleaseContext to release Crypt handle on Windows --- Python/random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/random.c b/Python/random.c index b04d205..a052b65 100644 --- a/Python/random.c +++ b/Python/random.c @@ -298,7 +298,7 @@ _PyRandom_Fini(void) { #ifdef MS_WINDOWS if (hCryptProv) { - CloseHandle(hCryptProv); + CryptReleaseContext(hCryptProv, 0); hCryptProv = 0; } #else -- cgit v0.12