From: Martin v. Löwis Date: Tue, 4 Sep 2007 09:51:57 +0000 (+0000) Subject: Document that we rely on the OS to release the crypto X-Git-Tag: v2.6a1~1351 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af699dd621e83a1569e7325a8d80f54b6585ea6d;p=python Document that we rely on the OS to release the crypto context. Fixes #1626801. --- 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*