summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2007-03-19 17:06:24 (GMT)
committerdgp <dgp@users.sourceforge.net>2007-03-19 17:06:24 (GMT)
commit85d645e7d34a62d8b3e0211277b9271fb32dce66 (patch)
treed4afeb9f0c63cd80b0121107034e2c1ec4220f98 /unix
parent81071e7c69ad7aef5a908c64b219977a52442ff5 (diff)
downloadtcl-85d645e7d34a62d8b3e0211277b9271fb32dce66.zip
tcl-85d645e7d34a62d8b3e0211277b9271fb32dce66.tar.gz
tcl-85d645e7d34a62d8b3e0211277b9271fb32dce66.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.c6
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 );
}