#1529 clock format leaks memory

closed-fixed
Kevin B KENNY
5
2002-05-24
2001-06-13
Gary Mason
No

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.

Discussion

    • labels: 105657 --> 06. Time Measurement
     
    • assigned_to: nobody --> kennykb
     
  • Kevin B KENNY
    Kevin B KENNY
    2002-03-03

    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.

     
  • Kevin B KENNY
    Kevin B KENNY
    2002-03-03

    • status: open --> closed-postponed
     
  • Jeffrey Hobbs
    Jeffrey Hobbs
    2002-05-24

    • status: closed-postponed --> closed-fixed
     
  • Jeffrey Hobbs
    Jeffrey Hobbs
    2002-05-24

    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.