diff options
author | nijtmans <nijtmans@noemail.net> | 2008-11-19 00:04:49 (GMT) |
---|---|---|
committer | nijtmans <nijtmans@noemail.net> | 2008-11-19 00:04:49 (GMT) |
commit | 932d77aee6e45819b3b3384ae046521fb321bec9 (patch) | |
tree | 6c434737601ffbe21c8412c86a0487131b4c3ffd /generic/tclThreadTest.c | |
parent | 2e0334b650b4d870630de52b6354fd74eda8dc97 (diff) | |
download | tcl-932d77aee6e45819b3b3384ae046521fb321bec9.zip tcl-932d77aee6e45819b3b3384ae046521fb321bec9.tar.gz tcl-932d77aee6e45819b3b3384ae046521fb321bec9.tar.bz2 |
Convert Tcl_SetResult(......, TCL_DYNAMIC) to
Tcl_SetResult(......, TCL_VOLATILE), in preparation
for TIP #340
FossilOrigin-Name: a75210e18b94fd3963b38f1cc8beece128651e98
Diffstat (limited to 'generic/tclThreadTest.c')
-rw-r--r-- | generic/tclThreadTest.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |