Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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.