summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-09-04 09:51:57 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-09-04 09:51:57 (GMT)
commitaf699dd621e83a1569e7325a8d80f54b6585ea6d (patch)
tree7674b32cce07cb3fdd283931af93f7cb2b293321 /Modules/posixmodule.c
parentfcb444a8bf249e93eda5803469b33bb42781959a (diff)
downloadcpython-af699dd621e83a1569e7325a8d80f54b6585ea6d.zip
cpython-af699dd621e83a1569e7325a8d80f54b6585ea6d.tar.gz
cpython-af699dd621e83a1569e7325a8d80f54b6585ea6d.tar.bz2
Document that we rely on the OS to release the crypto
context. Fixes #1626801.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 24c9e15..7c25a05 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -8074,6 +8074,8 @@ typedef BOOL (WINAPI *CRYPTGENRANDOM)(HCRYPTPROV hProv, DWORD dwLen,\
BYTE *pbBuffer );
static CRYPTGENRANDOM pCryptGenRandom = NULL;
+/* This handle is never explicitly released. Instead, the operating
+ system will release it when the process terminates. */
static HCRYPTPROV hCryptProv = 0;
static PyObject*