summaryrefslogtreecommitdiffstats
path: root/generic/tclFCmd.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2011-03-24 09:45:59 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2011-03-24 09:45:59 (GMT)
commit140f00c9c6c7d8ed4c169f50aac8a9f11a8ef214 (patch)
tree2e9ad98188b432f5792e3b90fce719d25958e8aa /generic/tclFCmd.c
parentc4440fe73015005877039528e43e1bbb6c47f6d2 (diff)
parent50af193cccb9e59c48552d00946ea578bcaa986d (diff)
downloadtcl-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.c6
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);