summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2014-04-23 09:18:20 (GMT)
committersebres <sebres@users.sourceforge.net>2014-04-23 09:18:20 (GMT)
commitf231f10b58b9f58583b664655b513d3f3ee0c382 (patch)
treedd0fc6581fc89924e0deae44d2b6ab7924106bf9 /unix
parent192fce9c01c4ee3827aa8f54967764c18bdd5dca (diff)
downloadtcl-f231f10b58b9f58583b664655b513d3f3ee0c382.zip
tcl-f231f10b58b9f58583b664655b513d3f3ee0c382.tar.gz
tcl-f231f10b58b9f58583b664655b513d3f3ee0c382.tar.bz2
*nix segfault cleared: we should reset a thread key after freeing of alloc cache (in tclUnixThrd.c)bug_3493120
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixThrd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index ad36242..d30791d 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -814,6 +814,7 @@ TclpFreeAllocCache(
*/
TclFreeAllocCache(ptr);
+ pthread_setspecific(key, NULL);
} else if (initialized) {
/*