New submission from Alexandre Vassalotti <alexan...@peadrop.com>:

io.StringIO does not clear its reference to its attributes dictionary
when deleted. This causes a leak when io.StringIO has attributes. 

>>> def leak():
...    for _ in range(100):
...      f = io.StringIO()
...      f.foo = 1
... 
[39348 refs]
>>> leak()
[39650 refs]
>>> leak()
[39950 refs]
>>> leak()
[40250 refs]

----------
components: IO, Library (Lib)
files: fix_refleak_stringio.diff
keywords: patch
messages: 89105
nosy: alexandre.vassalotti
priority: normal
severity: normal
stage: patch review
status: open
title: Fix reference leak in io.StringIO
type: behavior
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file14232/fix_refleak_stringio.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6242>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to