diff options
| author | dgp@users.sourceforge.net <dgp> | 2007-06-20 18:46:05 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2007-06-20 18:46:05 (GMT) |
| commit | cb719d5fb540d47bd4e4eb5b995cbd255c733411 (patch) | |
| tree | 3d231361d50bc42a020d3f65eefb68a5951da2ae /generic/tclIOCmd.c | |
| parent | 90ed0ce197b586fedc9e4ed3df9577eff11b7a29 (diff) | |
| download | tcl-cb719d5fb540d47bd4e4eb5b995cbd255c733411.zip tcl-cb719d5fb540d47bd4e4eb5b995cbd255c733411.tar.gz tcl-cb719d5fb540d47bd4e4eb5b995cbd255c733411.tar.bz2 | |
* generic/tclInt.decls: Revised the interfaces of the routines
* generic/tclExecute.c: TclStackAlloc and TclStackFree to make them
easier for callers to use (or more precisely, harder to misuse).
TclStackFree now takes a (void *) argument which is the pointer
intended to be freed. TclStackFree will panic if that's not actually
the memory the call will free. TSA/TSF also now tolerate receiving
(interp == NULL), in which case they simply fall back to be calls to
Tcl_Alloc/Tcl_Free.
* generic/tclIntDecls.h: make genstubs
* generic/tclBasic.c: Updated callers
* generic/tclCmdAH.c:
* generic/tclCmdIL.c:
* generic/tclCompCmds.c:
* generic/tclCompExpr.c:
* generic/tclCompile.c:
* generic/tclFCmd.c:
* generic/tclFileName.c:
* generic/tclIOCmd.c:
* generic/tclIndexObj.c:
* generic/tclInterp.c:
* generic/tclNamesp.c:
* generic/tclProc.c:
* generic/tclTrace.c:
* unix/tclUnixPipe.c:
Diffstat (limited to 'generic/tclIOCmd.c')
| -rw-r--r-- | generic/tclIOCmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIOCmd.c b/generic/tclIOCmd.c index 97d11ff..8507eb2 100644 --- a/generic/tclIOCmd.c +++ b/generic/tclIOCmd.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIOCmd.c,v 1.40 2007/04/24 02:42:18 kennykb Exp $ + * RCS: @(#) $Id: tclIOCmd.c,v 1.41 2007/06/20 18:46:13 dgp Exp $ */ #include "tclInt.h" @@ -872,7 +872,7 @@ Tcl_ExecObjCmd( * Free the argv array. */ - TclStackFree(interp); /* argv */ + TclStackFree(interp, argv); if (chan == (Tcl_Channel) NULL) { return TCL_ERROR; |
