diff options
| author | dgp@users.sourceforge.net <dgp> | 2007-03-19 16:59:06 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2007-03-19 16:59:06 (GMT) |
| commit | 55dd91d9aabc2d68b7ff48fc489e46023d76cde3 (patch) | |
| tree | fa41016732a9e446bfb70eb52970688c69463f11 /unix/tclUnixTime.c | |
| parent | 0fcdfff6ada890b2e7f7758f7460e97e20f7943c (diff) | |
| download | tcl-55dd91d9aabc2d68b7ff48fc489e46023d76cde3.zip tcl-55dd91d9aabc2d68b7ff48fc489e46023d76cde3.tar.gz tcl-55dd91d9aabc2d68b7ff48fc489e46023d76cde3.tar.bz2 | |
* generic/tclBasic.c (Tcl_CreateMathFunc): Replaced some
* generic/tclEvent.c (Tcl_CreateThread): calls to Tcl_Alloc()
* generic/tclObj.c (UpdateStringOfBignum): 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 09003a7..d73808d 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.27 2006/08/21 01:08:42 das Exp $ + * RCS: @(#) $Id: tclUnixTime.c,v 1.28 2007/03/19 16:59:09 dgp Exp $ */ #include "tclInt.h" @@ -646,7 +646,7 @@ SetTZIfNecessary(void) } else { Tcl_Free(lastTZ); } - lastTZ = Tcl_Alloc(strlen(newTZ) + 1); + lastTZ = ckalloc(strlen(newTZ) + 1); strcpy(lastTZ, newTZ); } Tcl_MutexUnlock(&tmMutex); @@ -673,7 +673,7 @@ static void CleanupMemory( ClientData ignored) { - Tcl_Free(lastTZ); + ckfree(lastTZ); } /* |
