[issue1469] SSL tests leak memory

Bill Janssen report at bugs.python.org
Tue Dec 11 01:38:19 CET 2007


Bill Janssen added the comment:

Ah, I see what's going on.  The revision of the socket code (nice job,
by the way) removed the distinction between the C socket object and the
Python socket object.  The C SSLContext keeps a pointer to the C socket
object, which is now the Python socket object, or in the SSL case, the
SSLSocket object.  So there's a circular reference.

The right fix is to make the ref in the SSL C code a weakref.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1469>
__________________________________


More information about the Python-bugs-list mailing list