summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2014-02-25 15:49:52 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2014-02-25 15:49:52 (GMT)
commit259729fa361e6d184ef91be067a93309e14cd998 (patch)
tree0f5a26925e18c541281b2bb2e70e1bff14a04f04 /generic/tclExecute.c
parent1186a5d2a99856b462ae56281a6438e80ce9d2c1 (diff)
downloadtcl-259729fa361e6d184ef91be067a93309e14cd998.zip
tcl-259729fa361e6d184ef91be067a93309e14cd998.tar.gz
tcl-259729fa361e6d184ef91be067a93309e14cd998.tar.bz2
[8d5f5b8034] Flush internal representations in [string tolower] of unshared obj
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 89305e6..41730d3 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -5392,6 +5392,7 @@ TEBCresume(
} else {
length = Tcl_UtfToUpper(TclGetString(valuePtr));
Tcl_SetObjLength(valuePtr, length);
+ TclFreeIntRep(valuePtr);
TRACE_APPEND(("\"%.20s\"\n", O2S(valuePtr)));
NEXT_INST_F(1, 0, 0);
}
@@ -5408,6 +5409,7 @@ TEBCresume(
} else {
length = Tcl_UtfToLower(TclGetString(valuePtr));
Tcl_SetObjLength(valuePtr, length);
+ TclFreeIntRep(valuePtr);
TRACE_APPEND(("\"%.20s\"\n", O2S(valuePtr)));
NEXT_INST_F(1, 0, 0);
}
@@ -5424,6 +5426,7 @@ TEBCresume(
} else {
length = Tcl_UtfToTitle(TclGetString(valuePtr));
Tcl_SetObjLength(valuePtr, length);
+ TclFreeIntRep(valuePtr);
TRACE_APPEND(("\"%.20s\"\n", O2S(valuePtr)));
NEXT_INST_F(1, 0, 0);
}