summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/htsthread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/htsthread.c b/src/htsthread.c
index 6e6a805..58f2917 100644
--- a/src/htsthread.c
+++ b/src/htsthread.c
@@ -154,6 +154,7 @@ HTSEXT_API int hts_newthread( void (*fun)(void *arg), void *arg)
} else {
/* detach the thread from the main process so that is can be independent */
pthread_detach(handle);
+ pthread_attr_destroy(&attr);
}
}
#endif