summaryrefslogtreecommitdiff
path: root/tsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tsd.c')
-rw-r--r--tsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tsd.c b/tsd.c
index e573d3d..d1d2deb 100644
--- a/tsd.c
+++ b/tsd.c
@@ -44,7 +44,8 @@ pthread_getspecific(pthread_key_t key)
int
pthread_key_delete(pthread_key_t key)
{
- /* FIXME: We must remove any associated destructors here. */
+ /* Remove this key's destructors. */
+ _pthread_destructor_pop(key);
return (TlsFree(key) == FALSE) ? EINVAL : 0;
}