Issue1499797
Created on 2006年06月02日 20:46 by zseil, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files |
| File name |
Uploaded |
Description |
Edit |
|
winerror_str.diff
|
zseil,
2006年06月02日 20:46
|
patch against revision 46603 |
| Messages (2) |
|
msg50409 - (view) |
Author: Ziga Seilnacht (zseil) * (Python committer) |
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) * (Python committer) |
Date: 2006年06月04日 06:20 |
Logged In: YES
user_id=33168
Thanks!
Committed revision 46639.
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2022年04月11日 14:56:17 | admin | set | github: 43449 |
| 2006年06月02日 20:46:24 | zseil | create |