diff options
| author | dgp@users.sourceforge.net <dgp> | 2007-04-02 18:48:01 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2007-04-02 18:48:01 (GMT) |
| commit | 76b7dca84e2180a5bc13fb5506fe98ec7e417a8e (patch) | |
| tree | 533f6091f7eb9bb16881b234e206e374e57eb34f /generic/tclFCmd.c | |
| parent | c606549e3133e76b79f8c727bd73f9a5833536e2 (diff) | |
| download | tcl-76b7dca84e2180a5bc13fb5506fe98ec7e417a8e.zip tcl-76b7dca84e2180a5bc13fb5506fe98ec7e417a8e.tar.gz tcl-76b7dca84e2180a5bc13fb5506fe98ec7e417a8e.tar.bz2 | |
* generic/tclBasic.c: Replace arrays on the C stack and ckalloc
* generic/tclExecute.c: calls with TclStackAlloc calls to use memory
* generic/tclFCmd.c: on Tcl's evaluation stack.
* generic/tclFileName.c:
* generic/tclIOCmd.c:
* generic/tclIndexObj.c:
* generic/tclInterp.c:
* generic/tclNamesp.c:
* generic/tclTrace.c:
* unix/tclUnixPipe.c:
Diffstat (limited to 'generic/tclFCmd.c')
| -rw-r--r-- | generic/tclFCmd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclFCmd.c b/generic/tclFCmd.c index 516ffcf..a7f5478 100644 --- a/generic/tclFCmd.c +++ b/generic/tclFCmd.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: tclFCmd.c,v 1.36 2005/11/01 15:30:52 dkf Exp $ + * RCS: @(#) $Id: tclFCmd.c,v 1.37 2007/04/02 18:48:03 dgp Exp $ */ #include "tclInt.h" @@ -999,8 +999,8 @@ TclFileAttrsCmd( if (Tcl_ListObjLength(interp, objStrings, &numObjStrings) != TCL_OK) { goto end; } - attributeStrings = (CONST char **) - ckalloc((1+numObjStrings) * sizeof(char*)); + attributeStrings = (CONST char **) TclStackAlloc(interp, + (1+numObjStrings) * sizeof(char*)); for (index = 0; index < numObjStrings; index++) { Tcl_ListObjIndex(interp, objStrings, index, &objPtr); attributeStrings[index] = TclGetString(objPtr); @@ -1110,7 +1110,7 @@ TclFileAttrsCmd( * Free up the array we allocated. */ - ckfree((char*)attributeStrings); + TclStackFree(interp); /* attributeStrings */ /* * We don't need this object that was passed to us any more. |
