Message50409
| 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:31 | admin | link | issue1499797 messages |
| 2007年08月23日 15:52:31 | admin | create |
|