summaryrefslogtreecommitdiff
path: root/lib/thread.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@openbsd.org>2017-09-26 21:58:39 -0300
committerGitHub <noreply@github.com>2017-09-26 21:58:39 -0300
commit63e4c24f2c3e5dde5d98fb3026b612544bdf60d6 (patch)
treea3a0f810a3ee43c0ee46d6713923f1aa948c4780 /lib/thread.c
parent6988ea42d2785058124b114b49799787fb002050 (diff)
parent33844bbe43866bfc0b7a50d41d88dfff27b4a75a (diff)
Merge pull request #1243 from qlyoung/tm-destroy-cond
lib: destroy threadmaster condition variable
Diffstat (limited to 'lib/thread.c')
-rw-r--r--lib/thread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/thread.c b/lib/thread.c
index d8be32e2bd..621eed0ff0 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -567,6 +567,7 @@ void thread_master_free(struct thread_master *m)
thread_list_free(m, &m->ready);
thread_list_free(m, &m->unuse);
pthread_mutex_destroy(&m->mtx);
+ pthread_cond_destroy(&m->cancel_cond);
close(m->io_pipe[0]);
close(m->io_pipe[1]);
list_delete(m->cancel_req);