[pypy-svn] pypy default: cleanup the openssl context and fix a large memory leak.

amauryfa commits-noreply at bitbucket.org
Wed Jan 26 11:48:21 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r41337:eb8f72737850
Date: 2011-01-26 11:43 +0100
http://bitbucket.org/pypy/pypy/changeset/eb8f72737850/

Log:	cleanup the openssl context and fix a large memory leak.

diff --git a/pypy/module/_hashlib/interp_hashlib.py b/pypy/module/_hashlib/interp_hashlib.py
--- a/pypy/module/_hashlib/interp_hashlib.py
+++ b/pypy/module/_hashlib/interp_hashlib.py
@@ -30,6 +30,7 @@
 
     def __del__(self):
         # self.lock.free()
+        ropenssl.EVP_MD_CTX_cleanup(self.ctx)
         lltype.free(self.ctx, flavor='raw')
 
     @unwrap_spec('self', ObjSpace)


More information about the Pypy-commit mailing list