summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornijtmans <nijtmans>2008-11-19 00:04:49 (GMT)
committernijtmans <nijtmans>2008-11-19 00:04:49 (GMT)
commit718ed7c6446b39172357c0d70f17e914f5a4c1d4 (patch)
tree6c434737601ffbe21c8412c86a0487131b4c3ffd
parent3f59149579bd66510f70ecdd2cb420bb1e45e614 (diff)
downloadtcl-718ed7c6446b39172357c0d70f17e914f5a4c1d4.zip
tcl-718ed7c6446b39172357c0d70f17e914f5a4c1d4.tar.gz
tcl-718ed7c6446b39172357c0d70f17e914f5a4c1d4.tar.bz2
Convert Tcl_SetResult(......, TCL_DYNAMIC) to
Tcl_SetResult(......, TCL_VOLATILE), in preparation for TIP #340
-rw-r--r--ChangeLog6
-rw-r--r--generic/tclThreadTest.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 488b24d..3e858e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-11-19 Jan Nijtmans <nijtmans@users.sf.net>
+
+ * generic/tclThreadTest.c Convert Tcl_SetResult(......, TCL_DYNAMIC) to
+ Tcl_SetResult(......, TCL_VOLATILE), in preparation
+ for TIP #340
+
2008-11-17 Jan Nijtmans <nijtmans@users.sf.net>
* generic/tcl.decls: Fix signature and implementation of
diff --git a/generic/tclThreadTest.c b/generic/tclThreadTest.c
index eb3b855..82485ff 100644
--- a/generic/tclThreadTest.c
+++ b/generic/tclThreadTest.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclThreadTest.c,v 1.27 2008/10/16 22:34:19 nijtmans Exp $
+ * RCS: @(#) $Id: tclThreadTest.c,v 1.28 2008/11/19 00:04:49 nijtmans Exp $
*/
#include "tclInt.h"
@@ -929,7 +929,8 @@ TclThreadSend(
ckfree(resultPtr->errorInfo);
}
}
- Tcl_SetResult(interp, resultPtr->result, TCL_DYNAMIC);
+ Tcl_SetResult(interp, resultPtr->result, TCL_VOLATILE);
+ ckfree(resultPtr->result);
Tcl_ConditionFinalize(&resultPtr->done);
code = resultPtr->code;