summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorTim Golden <mail@timgolden.me.uk>2014-05-06 12:29:45 (GMT)
committerTim Golden <mail@timgolden.me.uk>2014-05-06 12:29:45 (GMT)
commitb8ac3e1a205c79a37dbb7365a87b498e194eebdd (patch)
treea4d4ee61decdf36f1885974e03b2a47b37b53f3e /Python
parente0bd2c5fadbab13e1dfb018048aedf15087e60ff (diff)
downloadcpython-b8ac3e1a205c79a37dbb7365a87b498e194eebdd.zip
cpython-b8ac3e1a205c79a37dbb7365a87b498e194eebdd.tar.gz
cpython-b8ac3e1a205c79a37dbb7365a87b498e194eebdd.tar.bz2
Issue21393 Use CryptReleaseContext to release Crypt handle on Windows
Diffstat (limited to 'Python')
-rw-r--r--Python/random.c2
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