Subject: *nix segfault cleared: we should reset a thread key after freeing of alloc cache (in tclUnixThrd.c)

From: sebres <[email-masked]>
Date: Wed, 23 Apr 2014 09:18:20 +0000

---
 unix/tclUnixThrd.c | 1 +
 1 file changed, 1 insertion(+)

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) {
 	/*
-- 
cgit v0.12