summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.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 /generic/tclBasic.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 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 2220b32..548bcc3 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclBasic.c,v 1.237 2007/02/27 20:34:37 dkf Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.238 2007/03/19 16:59:08 dgp Exp $
*/
#include "tclInt.h"
@@ -2985,8 +2985,7 @@ Tcl_CreateMathFunc(
data->proc = proc;
data->numArgs = numArgs;
- data->argTypes = (Tcl_ValueType*)
- Tcl_Alloc(numArgs * sizeof(Tcl_ValueType));
+ data->argTypes = (Tcl_ValueType*) ckalloc(numArgs * sizeof(Tcl_ValueType));
memcpy(data->argTypes, argTypes, numArgs * sizeof(Tcl_ValueType));
data->clientData = clientData;