summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
Diffstat (limited to 'private.c')
-rw-r--r--private.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/private.c b/private.c
index 783e0ef..32116ef 100644
--- a/private.c
+++ b/private.c
@@ -120,6 +120,10 @@ _pthread_delete_thread(_pthread_t * thread)
/* We don't check that the thread has been properly cleaned up, so
it had better be done already. */
+ /* Release any keys */
+
+ _pthread_destructor_run_all();
+
/* Remove the thread entry if necessary. */
if (thread != NULL