diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2006-10-26 17:22:17 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2006-10-26 17:22:17 (GMT) |
commit | 3c995152fdd1a379578052a87aba364ecdcffa57 (patch) | |
tree | a3b6ad0304f47cc638af802dfe1d08f0db0c789c /generic/tclInterp.c | |
parent | 1f316fa5bdbc522015527cd180f58c0e9e077843 (diff) | |
download | tcl-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.c | 7 |
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 |