[issue6242] Fix reference leak in io.StringIO

Alexandre Vassalotti report at bugs.python.org
Tue Jun 9 07:17:40 CEST 2009


Alexandre Vassalotti <alexandre at peadrop.com> added the comment:

Here's an updated patch. The new patch also cleans up tp_clear,
tp_traverse and tp_dealloc of io.BytesIO which used weakreflist incorrectly.

I also added support for test_memoryio for adding reference leak
regression tests. As you'll see, the support is a bit heavyweight for
the only test case there. So perhaps I could change this to something
simpler.

----------
Added file: http://bugs.python.org/file14242/fix_refleak_stringio-2.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6242>
_______________________________________


More information about the Python-bugs-list mailing list