Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-05-25
02:36 • Ticket [432813ffff] clock format leaks memory status still Closed with 7 oth... artifact: 4c25ba8ff7 user: hobbs
2002-03-03
07:59 • Closed ticket [432813ffff]. artifact: 3d0039ca4d user: kennykb
2001-08-01
04:33 • Ticket [432813ffff]: 1 change artifact: 63466bbe5a user: andreas_kupries
2001-07-08
03:47 • Ticket [432813ffff]: 1 change artifact: 4b7432407b user: dkf
2001-06-13
16:31 • New ticket [432813ffff]. artifact: 5169045756 user: grm1

clock format leaks memory

Closed / Fixed432813ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-06-13 16:31:37
On an NT4.0 system using TCL8.3.2 using the -gmt 1 option of clock format
will leak 11 bytes of memory for each invokation.
dkf Ticket [432813ffff]: 1 change [History diff]2001-07-08 03:47:36
andreas_kupries Ticket [432813ffff]: 1 change [History diff]2001-08-01 04:33:54
kennykbplain2002-03-03 07:59:17
Logged In: YES 
user_id=99768

This is actually a Microsoft bug, not a Tcl one.  The leak is
at two locations: generic/tclEnv.c, lines 249 and 400.
This results from [clock] changing the timezone temporarily
to UTC and then back to the local zone.

The calls to 'putenv' are in fact correct, but 'putenv' itself
leaks memory.  Details of this bug can be found at
http://support.microsoft.com/directory/article.asp?ID=KB;EN-US;Q235601

At such time as Tcl is built with Visual Studio.NET, the
problem should go away.
hobbsplain2002-05-25 02:36:00
Logged In: YES 
user_id=72656

See bug 559376 which has the fix (work-around MS bug).  
This is commited to 8.3.4+ and 8.4a5.
Log in (anonymous is fine) to add a comment.