aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2011-08-15 09:12:34 +0000
committerArmin Rigo <arigo@tunes.org>2011-08-15 09:12:34 +0000
commita77df69ce99f43e1a11b1cd2d31a7bab25098996 (patch)
tree76dce3e99b9373d654304fc876e81efe9e23873e
parentCan't call these ropenssl methods without releasing (diff)
downloadpypy-a77df69ce99f43e1a11b1cd2d31a7bab25098996.tar.gz
pypy-a77df69ce99f43e1a11b1cd2d31a7bab25098996.tar.bz2
pypy-a77df69ce99f43e1a11b1cd2d31a7bab25098996.zip
Grumble.
(transplanted from af690ea765e2ccd6f5143f6f4e46409b7138019a)
-rw-r--r--pypy/module/_ssl/interp_ssl.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pypy/module/_ssl/interp_ssl.py b/pypy/module/_ssl/interp_ssl.py
index bddcbeda43..74b71f19d3 100644
--- a/pypy/module/_ssl/interp_ssl.py
+++ b/pypy/module/_ssl/interp_ssl.py
@@ -142,6 +142,7 @@ class SSLObject(Wrappable):
'__del__() method of ')
def destructor(self):
+ assert isinstance(self, SSLObject)
if self.peer_cert:
libssl_X509_free(self.peer_cert)
if self.ssl: