diff options
author | dgp <dgp@noemail.net> | 2007-03-19 17:06:23 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2007-03-19 17:06:23 (GMT) |
commit | 713eef3a92cc9a2f39ee7b8d08a2065db267432a (patch) | |
tree | d4afeb9f0c63cd80b0121107034e2c1ec4220f98 /unix/tclUnixTime.c | |
parent | 1e2d7f6101b59e1ac1b62c57a7ab8a525bb55983 (diff) | |
download | tcl-713eef3a92cc9a2f39ee7b8d08a2065db267432a.zip tcl-713eef3a92cc9a2f39ee7b8d08a2065db267432a.tar.gz tcl-713eef3a92cc9a2f39ee7b8d08a2065db267432a.tar.bz2 |
* generic/tclEvent.c (Tcl_CreateThread): Replaced some calls to
* generic/tclPkg.c (CheckVersion): Tcl_Alloc() with calls to
* unix/tclUnixTime.c (SetTZIfNecessary): ckalloc(), which better
* win/tclAppInit.c (setargv): supports memory debugging.
FossilOrigin-Name: 801b5dc41c0bffb2278f82825a7cda803f16faaf
Diffstat (limited to 'unix/tclUnixTime.c')
-rw-r--r-- | unix/tclUnixTime.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c index da03440..b7ef888 100644 --- a/unix/tclUnixTime.c +++ b/unix/tclUnixTime.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixTime.c,v 1.15.2.4 2005/03/15 16:29:54 kennykb Exp $ + * RCS: @(#) $Id: tclUnixTime.c,v 1.15.2.5 2007/03/19 17:06:26 dgp Exp $ */ #include "tclInt.h" @@ -461,7 +461,7 @@ SetTZIfNecessary() { } else { Tcl_Free( lastTZ ); } - lastTZ = Tcl_Alloc( strlen( newTZ ) + 1 ); + lastTZ = ckalloc( strlen( newTZ ) + 1 ); strcpy( lastTZ, newTZ ); } Tcl_MutexUnlock(&tmMutex); @@ -488,5 +488,5 @@ SetTZIfNecessary() { static void CleanupMemory( ClientData ignored ) { - Tcl_Free( lastTZ ); + ckfree( lastTZ ); } |