summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
Diffstat (limited to 'private.c')
-rw-r--r--private.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/private.c b/private.c
index cee84e9..8424277 100644
--- a/private.c
+++ b/private.c
@@ -109,8 +109,9 @@ _pthread_delete_thread_entry(_pthread_threads_thread_t * entry)
if (entry->thread != NULL)
{
+ pthread_attr_destroy(&(entry->attr));
entry->thread = NULL;
-
+
if (_pthread_threads_count > 0)
{
_pthread_threads_count--;