summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-10-11 21:43:44 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-10-11 21:43:44 (GMT)
commit54c0881e9d6deab242839da14f2f4d3dfe05df5b (patch)
tree6ec54166e1a86a7d7a558c818ffc68b1a294cad1 /win
parent8fe7f3fcdf076350f36ebffa03d84955d3aab367 (diff)
parentd81daf76bdb5794b66511feb620c36e932e9ac99 (diff)
downloadtcl-54c0881e9d6deab242839da14f2f4d3dfe05df5b.zip
tcl-54c0881e9d6deab242839da14f2f4d3dfe05df5b.tar.gz
tcl-54c0881e9d6deab242839da14f2f4d3dfe05df5b.tar.bz2
Fix [3cc1d91345]: duplicate calls to TclpFreeAllocCache() on thread exists
Diffstat (limited to 'win')
-rw-r--r--win/tclWinThrd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/win/tclWinThrd.c b/win/tclWinThrd.c
index ca26f08..8f3ddb9 100644
--- a/win/tclWinThrd.c
+++ b/win/tclWinThrd.c
@@ -1012,8 +1012,10 @@ TclpFreeAllocCache(
if (ptr != NULL) {
/*
- * Called by us in TclpFinalizeThreadData when a thread exits and
- * destroys the tsd key which stores allocator caches.
+ * Called by TclFinalizeThreadAlloc() and
+ * TclFinalizeThreadAllocThread() during Tcl_Finalize() or
+ * Tcl_FinalizeThread(). This function destroys the tsd key which
+ * stores allocator caches in thread local storage.
*/
TclFreeAllocCache(ptr);