summaryrefslogtreecommitdiff
path: root/lib/thread.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-09-25 16:01:08 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-09-25 16:01:08 -0400
commit33844bbe43866bfc0b7a50d41d88dfff27b4a75a (patch)
tree6b33925c8f2a9daf85aaff9164f6ec6ea29e7569 /lib/thread.c
parent5176f7b7135f412eee4b6c2240e851c642e8bd8c (diff)
lib: destroy threadmaster condition variable
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
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);