summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-09-04 09:51:57 +0000
committerMartin v. Löwis <martin@v.loewis.de>2007-09-04 09:51:57 +0000
commitaf699dd621e83a1569e7325a8d80f54b6585ea6d (patch)
tree7674b32cce07cb3fdd283931af93f7cb2b293321
parentfcb444a8bf249e93eda5803469b33bb42781959a (diff)
downloadcpython-git-af699dd621e83a1569e7325a8d80f54b6585ea6d.tar.gz
Document that we rely on the OS to release the crypto
context. Fixes #1626801.
-rw-r--r--Modules/posixmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 24c9e15537..7c25a05b48 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*