#1529 clock format leaks memory

closed-fixed
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

  • Donal K. Fellows

    • labels: 105657 --> 06. Time Measurement
     
  • Andreas Kupries

    Andreas Kupries - 2001-07-31
    • 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.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks