summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-05-12 14:54:35 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-05-12 14:54:35 +0000
commitdce5f3ff5459a161b599c1d35bbc7839a1428508 (patch)
tree397768e52495e6044c5abfcaaacfb0f8499b1a73 /src
parentcb96c0dcc28bc37db1a90d3523ff9c2fe6c41047 (diff)
Missing pthread_attr_destroy()
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