summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixThrd.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-04-24 04:34:01 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-04-24 04:34:01 (GMT)
commit5b5f0209a4f6007ff2804da3f32258bb2148e814 (patch)
tree7c825dbeded76cc60fc9770c7f9d97f008323262 /unix/tclUnixThrd.c
parent333fb43fbfb982a67285d944fe45a42dc8f85913 (diff)
parentfe4debabde73db9d51c655f61d19bc8d23956668 (diff)
downloadtcl-5b5f0209a4f6007ff2804da3f32258bb2148e814.zip
tcl-5b5f0209a4f6007ff2804da3f32258bb2148e814.tar.gz
tcl-5b5f0209a4f6007ff2804da3f32258bb2148e814.tar.bz2
[3493120] Plug memory leak in thread exit.
Diffstat (limited to 'unix/tclUnixThrd.c')
-rw-r--r--unix/tclUnixThrd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index f469341..d34bc88 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -727,6 +727,7 @@ TclpFreeAllocCache(
*/
TclFreeAllocCache(ptr);
+ pthread_setspecific(key, NULL);
} else if (initialized) {
/*