#1529 clock format leaks memory

Gary Mason

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.


  • 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

    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

    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

    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