summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixThrd.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-04-23 18:25:27 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-04-23 18:25:27 (GMT)
commitc69e73e1839416633daa84c608f5ae36091275ba (patch)
tree8b77f40dadcc9f07791387401ab293f6213d6fff /unix/tclUnixThrd.c
parentd7f092d1cff5607b7a1c7ccc0199667091bfd69e (diff)
parentfa12c3782debade5f7f7c6611cf250b8580759c2 (diff)
downloadtcl-c69e73e1839416633daa84c608f5ae36091275ba.zip
tcl-c69e73e1839416633daa84c608f5ae36091275ba.tar.gz
tcl-c69e73e1839416633daa84c608f5ae36091275ba.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 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) {
/*