memleak in [try]
Closed / Fixed2910044fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2009-12-07 14:43:16
This came across TCLCORE (unverified):
"There seems to be a memory leak in the result handler code of the C
based try command.
This leaks the result:
try {
string repeat \0 1048576
} on ok {} {}
... this doesn't:
try {
string repeat \0 1048576
}
Adding Tcl_DecrRefCount(resultObj); at line 4461 of generic/tclCmdMZ.c
fixes the leak for me."
Message from [email protected]
dkfplain2009-12-07 21:50:54
Confirmed with HEAD.
dkfplain2009-12-07 22:10:04
Plugged it. (There were a few edge cases with generating errors in odd spots that the suggested fix would have missed; I closed those off too.)
dkfplain2009-12-07 22:10:25
allow_comments - 1
Log in (anonymous is fine) to add a comment.