Message50409
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. |
|
Date |
User |
Action |
Args |
2007-08-23 15:52:31 | admin | link | issue1499797 messages |
2007-08-23 15:52:31 | admin | create | |
|