summaryrefslogtreecommitdiff
path: root/dll.c
diff options
context:
space:
mode:
Diffstat (limited to 'dll.c')
-rw-r--r--dll.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dll.c b/dll.c
index 9d59379..b0d4d2a 100644
--- a/dll.c
+++ b/dll.c
@@ -152,14 +152,12 @@ DllMain (
/*
* Detached threads have their resources automatically
- * cleaned up upon exit (others must be 'joined'
+ * cleaned up upon exit (others must be 'joined').
*/
if (self != NULL &&
self->detachState == PTHREAD_CREATE_DETACHED)
{
-
pthread_setspecific (_pthread_selfThreadKey, NULL);
-
_pthread_threadDestroy (self);
}