From: Tim Golden Date: Tue, 6 May 2014 12:29:45 +0000 (+0100) Subject: Issue21393 Use CryptReleaseContext to release Crypt handle on Windows X-Git-Tag: v3.5.0a1~1729 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b8ac3e1a205c79a37dbb7365a87b498e194eebdd;p=thirdparty%2FPython%2Fcpython.git Issue21393 Use CryptReleaseContext to release Crypt handle on Windows --- diff --git a/Python/random.c b/Python/random.c index b04d205a46fe..a052b657251c 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