Issue1499797
Created on 2006-06-02 20:46 by zseil, last changed 2006-06-04 06:20 by nnorwitz.
| File name |
Uploaded |
Description |
Edit |
Remove |
|
winerror_str.diff
|
zseil,
2006-06-02 20:46
|
patch against revision 46603 |
|
|
|
msg50409 - (view) |
Author: Ziga Seilnacht (zseil) |
Date: 2006-06-02 20:46 |
|
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.
|
|
msg50410 - (view) |
Author: Neal Norwitz (nnorwitz) |
Date: 2006-06-04 06:20 |
|
Logged In: YES
user_id=33168
Thanks!
Committed revision 46639.
|
|
| Date |
User |
Action |
Args |
| 2006-06-02 20:46:24 | zseil | create | |
|