summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2013-01-02 14:18:15 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2013-01-02 14:18:15 (GMT)
commit23f820b9d35ee45f5474c55ee0dfc258548c8023 (patch)
treef5256ba864aa750093686aad7526a50f5e8fc2b2
parent893e609615915ef20818ca9b0aaa28ae751d713a (diff)
downloadtcl-23f820b9d35ee45f5474c55ee0dfc258548c8023.zip
tcl-23f820b9d35ee45f5474c55ee0dfc258548c8023.tar.gz
tcl-23f820b9d35ee45f5474c55ee0dfc258548c8023.tar.bz2
Don't free ctrl.script if thread creation fails: it is a constant string "testthread wait" normally.
-rw-r--r--generic/tclThreadTest.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/generic/tclThreadTest.c b/generic/tclThreadTest.c
index d298e5b..9d17f56 100644
--- a/generic/tclThreadTest.c
+++ b/generic/tclThreadTest.c
@@ -420,7 +420,6 @@ TclCreateThread(interp, script, joinable)
TCL_THREAD_STACK_DEFAULT, joinable) != TCL_OK) {
Tcl_MutexUnlock(&threadMutex);
Tcl_AppendResult(interp,"can't create a new thread",NULL);
- ckfree((void*)ctrl.script);
return TCL_ERROR;
}