summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2015-12-21 11:09:17 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2015-12-21 11:09:17 (GMT)
commitffc1d2a8ba79e51264d9056314c8b23294a44443 (patch)
tree0c1e3d809cba56f73a0ee0190f3c4fe42e970a52
parent0fe8e0c7817ae67e9052a4c868977bc237536308 (diff)
downloadtcl-ffc1d2a8ba79e51264d9056314c8b23294a44443.zip
tcl-ffc1d2a8ba79e51264d9056314c8b23294a44443.tar.gz
tcl-ffc1d2a8ba79e51264d9056314c8b23294a44443.tar.bz2
fix handling of string interface - segfault that did not happen under varlgrind or gdb (?)
-rw-r--r--generic/tclResult.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclResult.c b/generic/tclResult.c
index 9c22217..a1f307c 100644
--- a/generic/tclResult.c
+++ b/generic/tclResult.c
@@ -339,7 +339,7 @@ Tcl_SetResult(
if (freeProc) {
if (freeProc == TCL_DYNAMIC) {
ckfree(result);
- } else {
+ } else if ((freeProc != TCL_STATIC) && (freeProc != TCL_VOLATILE)) {
freeProc(result);
}
}