summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixTime.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2007-03-19 16:59:06 (GMT)
committerdgp <dgp@users.sourceforge.net>2007-03-19 16:59:06 (GMT)
commite5a9a4d6a85c0dcc262e00d46418410e63d63fa0 (patch)
treefa41016732a9e446bfb70eb52970688c69463f11 /unix/tclUnixTime.c
parentc29a0f17728ac66f5e659321fc15aa379af68abe (diff)
downloadtcl-e5a9a4d6a85c0dcc262e00d46418410e63d63fa0.zip
tcl-e5a9a4d6a85c0dcc262e00d46418410e63d63fa0.tar.gz
tcl-e5a9a4d6a85c0dcc262e00d46418410e63d63fa0.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.c6
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);
}
/*