diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-05-12 14:54:35 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-05-12 14:54:35 +0000 |
commit | dce5f3ff5459a161b599c1d35bbc7839a1428508 (patch) | |
tree | 397768e52495e6044c5abfcaaacfb0f8499b1a73 | |
parent | cb96c0dcc28bc37db1a90d3523ff9c2fe6c41047 (diff) |
Missing pthread_attr_destroy()
-rw-r--r-- | src/htsthread.c | 1 |
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 |