diff options
author | dgp <dgp@users.sourceforge.net> | 2007-03-19 17:06:24 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-03-19 17:06:24 (GMT) |
commit | 26010c164303aa7c78b574f0f811e8f85647f8f4 (patch) | |
tree | d4afeb9f0c63cd80b0121107034e2c1ec4220f98 /unix | |
parent | f91ed5ef4d648c69e89a99020255e1220fcedaf5 (diff) | |
download | tcl-26010c164303aa7c78b574f0f811e8f85647f8f4.zip tcl-26010c164303aa7c78b574f0f811e8f85647f8f4.tar.gz tcl-26010c164303aa7c78b574f0f811e8f85647f8f4.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.
Diffstat (limited to 'unix')
-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 ); } |