diff options
| author | dgp@users.sourceforge.net <dgp> | 2007-03-19 17:06:24 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2007-03-19 17:06:24 (GMT) |
| commit | aa96341f10de6de846d6fa89cf26c98d06f0c49b (patch) | |
| tree | d4afeb9f0c63cd80b0121107034e2c1ec4220f98 /unix/tclUnixTime.c | |
| parent | 0e75212b6658b133ad662ebc290425267487acee (diff) | |
| download | tcl-aa96341f10de6de846d6fa89cf26c98d06f0c49b.zip tcl-aa96341f10de6de846d6fa89cf26c98d06f0c49b.tar.gz tcl-aa96341f10de6de846d6fa89cf26c98d06f0c49b.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/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 ); } |
