diff options
author | Tim Golden <mail@timgolden.me.uk> | 2014-05-06 12:29:45 (GMT) |
---|---|---|
committer | Tim Golden <mail@timgolden.me.uk> | 2014-05-06 12:29:45 (GMT) |
commit | b8ac3e1a205c79a37dbb7365a87b498e194eebdd (patch) | |
tree | a4d4ee61decdf36f1885974e03b2a47b37b53f3e /Python/random.c | |
parent | e0bd2c5fadbab13e1dfb018048aedf15087e60ff (diff) | |
download | cpython-b8ac3e1a205c79a37dbb7365a87b498e194eebdd.zip cpython-b8ac3e1a205c79a37dbb7365a87b498e194eebdd.tar.gz cpython-b8ac3e1a205c79a37dbb7365a87b498e194eebdd.tar.bz2 |
Issue21393 Use CryptReleaseContext to release Crypt handle on Windows
Diffstat (limited to 'Python/random.c')
-rw-r--r-- | Python/random.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |