homepage

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 zseil
Recipients
Date 2006年06月02日.20:46:24
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The same memory leak that Neal Norwitz found in
EnvironmentError_str is also present in
WindowsError_str.
How to reproduce:
Python 2.5a2 (trunk:46603M, Jun 2 2006, 22:37:47)
 ...
>>> e = WindowsError(1, 'message', 'filename')
[27062 refs]
>>> s = str(e)
[27065 refs]
>>> s = str(e)
[27066 refs]
>>> s = str(e)
[27067 refs]
>>> del e.filename
[27066 refs]
>>> s = str(e)
[27066 refs]
>>> s = str(e)
[27066 refs]
>>> s = str(e)
[27066 refs]
This simple patch fixes it.
History
Date User Action Args
2007年08月23日 15:52:31adminlinkissue1499797 messages
2007年08月23日 15:52:31admincreate

AltStyle によって変換されたページ (->オリジナル) /