Skip to content
Tcl Source Code View Ticket
Login

View Ticket

memory leak in TEBC

Closed / Fixed587495ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-07-27 19:27:53
In today's head the proc 
  proc a num {while {[incr num -1]} {}}
leaks massively, while
  proc a num {for {set i $num} {$i} {incr i -1} {}}
doesn't. This is something new since 8.4b1
hobbsplain2002-07-28 03:17:27
Logged In: YES 
user_id=72656

please make sure that such tests are somewhere in the tcl 
test suite, even if they otherwise don't test anything.  It is the 
test suite I run over with purify to identify leaks.
msoferplain2002-07-28 04:30:51
Logged In: YES 
user_id=148712

Leak fixed in HEAD. Tests forthcoming (leaving open as
reminder).
msofer Ticket [587495ffff]: 2 changes [History diff]2002-07-29 23:38:59
msoferplain2002-08-09 01:41:46
Logged In: YES 
user_id=148712

This case is actually covered by entries in for.test,
if.test and while.test: purify shoud detect such leaks already.
Log in (anonymous is fine) to add a comment.