Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-08-24
00:34 • Closed ticket [454567ffff]: Open / close causes memory leaks plus 7 other ch... artifact: c2731ba106 user: hobbs
2001-08-23
13:32 • New ticket [454567ffff]. artifact: 432c102bb0 user: nobody

Open / close causes memory leaks

Closed / Out of Date454567ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-08-23 13:32:32
Under Windows NT/2000, opening and closing files makes 
the allocated memory increase. It is only freed when 
you quit wish.

Test example :

for {set k 0} {$k<100000} {incr k} {
 set fid [open AnyFile.txt r]
 close $fid
}

The memory increases of few Mb. Opening in append mode 
leads to a memory increase too.

I noticed that with tcl 8.3.2 but I didn't test former 
versions of tcl.
hobbsplain2001-08-24 00:34:00
Logged In: YES 
user_id=72656

This was fixed in 8.3.3 and 8.4a2+.  Please upgrade.
Log in (anonymous is fine) to add a comment.