This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alexandre.vassalotti
Recipients alexandre.vassalotti
Date 2009-06-08.19:51:35
SpamBayes Score 0.00042773236
Marked as misclassified No
Message-id <1244490696.88.0.117703122021.issue6242@psf.upfronthosting.co.za>
In-reply-to
Content
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]
History
Date User Action Args
2009-06-08 19:51:37alexandre.vassalottisetrecipients: + alexandre.vassalotti
2009-06-08 19:51:36alexandre.vassalottisetmessageid: <1244490696.88.0.117703122021.issue6242@psf.upfronthosting.co.za>
2009-06-08 19:51:35alexandre.vassalottilinkissue6242 messages
2009-06-08 19:51:35alexandre.vassalotticreate