diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2011-03-24 09:45:59 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2011-03-24 09:45:59 (GMT) |
commit | 140f00c9c6c7d8ed4c169f50aac8a9f11a8ef214 (patch) | |
tree | 2e9ad98188b432f5792e3b90fce719d25958e8aa /generic/tclFCmd.c | |
parent | c4440fe73015005877039528e43e1bbb6c47f6d2 (diff) | |
parent | 50af193cccb9e59c48552d00946ea578bcaa986d (diff) | |
download | tcl-140f00c9c6c7d8ed4c169f50aac8a9f11a8ef214.zip tcl-140f00c9c6c7d8ed4c169f50aac8a9f11a8ef214.tar.gz tcl-140f00c9c6c7d8ed4c169f50aac8a9f11a8ef214.tar.bz2 |
Ensure that any reference to temporary index tables is squelched immediately
rather than hanging around to trip us up in the future.
Diffstat (limited to 'generic/tclFCmd.c')
-rw-r--r-- | generic/tclFCmd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/generic/tclFCmd.c b/generic/tclFCmd.c index 6cd641f..53f955f 100644 --- a/generic/tclFCmd.c +++ b/generic/tclFCmd.c @@ -1069,6 +1069,9 @@ TclFileAttrsCmd( "option", 0, &index) != TCL_OK) { goto end; } + if (numObjStrings != -1) { + TclFreeIntRep(objv[0]); + } if (Tcl_FSFileAttrsGet(interp, index, filePtr, &objPtr) != TCL_OK) { goto end; @@ -1093,6 +1096,9 @@ TclFileAttrsCmd( "option", 0, &index) != TCL_OK) { goto end; } + if (numObjStrings != -1) { + TclFreeIntRep(objv[i]); + } if (i + 1 == objc) { Tcl_AppendResult(interp, "value for \"", TclGetString(objv[i]), "\" missing", NULL); |