summaryrefslogtreecommitdiffstats
path: root/generic/tclInterp.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2006-10-26 17:22:17 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2006-10-26 17:22:17 (GMT)
commit3c995152fdd1a379578052a87aba364ecdcffa57 (patch)
treea3b6ad0304f47cc638af802dfe1d08f0db0c789c /generic/tclInterp.c
parent1f316fa5bdbc522015527cd180f58c0e9e077843 (diff)
downloadtcl-3c995152fdd1a379578052a87aba364ecdcffa57.zip
tcl-3c995152fdd1a379578052a87aba364ecdcffa57.tar.gz
tcl-3c995152fdd1a379578052a87aba364ecdcffa57.tar.bz2
* generic/tclInterp.c (ApplyObjCmd):a
* generic/tclNamesp.c (EnsembleImplementationCmd): replaced ckalloc (heap) with TclStackAlloc (execution stack).
Diffstat (limited to 'generic/tclInterp.c')
-rw-r--r--generic/tclInterp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/tclInterp.c b/generic/tclInterp.c
index 9de1fbd..0156391 100644
--- a/generic/tclInterp.c
+++ b/generic/tclInterp.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclInterp.c,v 1.65 2006/10/24 00:29:30 msofer Exp $
+ * RCS: @(#) $Id: tclInterp.c,v 1.66 2006/10/26 17:22:17 msofer Exp $
*/
#include "tclInt.h"
@@ -1710,7 +1710,8 @@ AliasObjCmd(
if (cmdc <= ALIAS_CMDV_PREALLOC) {
cmdv = cmdArr;
} else {
- cmdv = (Tcl_Obj **) ckalloc((unsigned) (cmdc * sizeof(Tcl_Obj *)));
+ cmdv = (Tcl_Obj **) TclStackAlloc(interp,
+ (unsigned) (cmdc * sizeof(Tcl_Obj *)));
}
prefv = &aliasPtr->objPtr;
@@ -1763,7 +1764,7 @@ AliasObjCmd(
}
if (cmdv != cmdArr) {
- ckfree((char *) cmdv);
+ TclStackFree(interp);
}
return result;
#undef ALIAS_CMDV_PREALLOC