]> granicus.if.org Git - python/commit
Fix the leaks in test_ssl. Issue 1469. Patch by Christian Heimes:
authorGuido van Rossum <guido@python.org>
Thu, 6 Dec 2007 18:39:46 +0000 (18:39 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 6 Dec 2007 18:39:46 +0000 (18:39 +0000)
commit03b5c9ae7587cfac1c1b6be22ee5d2f7f854d68b
tree6c5c05a61cfd11b45fa7de1b0c9c2153d71aeb4c
parent4b28041530ce2dc8f741d544b6f86627348de3ef
Fix the leaks in test_ssl.  Issue 1469.  Patch by Christian Heimes:
(a) added GC support to the PySSL object
(b) move the call to _real_close() from __del__ methods in Python to
PySSL_dealloc().
(c) remove those __del__ methods -- this makes SSL and socket objects GC'able.
Lib/ssl.py
Modules/_ssl.c