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)
commitfa12c3782debade5f7f7c6611cf250b8580759c2 (patch)
treedd0fc6581fc89924e0deae44d2b6ab7924106bf9 /unix
parentfea67060de9dfd5bfbd323703c49af707a130926 (diff)
downloadtcl-fa12c3782debade5f7f7c6611cf250b8580759c2.zip
tcl-fa12c3782debade5f7f7c6611cf250b8580759c2.tar.gz
tcl-fa12c3782debade5f7f7c6611cf250b8580759c2.tar.bz2
*nix segfault cleared: we should reset a thread key after freeing of alloc cache (in tclUnixThrd.c)
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) {
/*