]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: destroy threadmaster condition variable 1243/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 25 Sep 2017 20:01:08 +0000 (16:01 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 25 Sep 2017 20:01:08 +0000 (16:01 -0400)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/thread.c

index d8be32e2bd7bb86e98f5b9226ff4bfa3bfd536d2..621eed0ff02d3d36717b03471511486c1d759ce7 100644 (file)
@@ -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);