From: Quentin Young Date: Mon, 25 Sep 2017 20:01:08 +0000 (-0400) Subject: lib: destroy threadmaster condition variable X-Git-Tag: frr-4.0-dev~273^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F1243%2Fhead;p=mirror%2Ffrr.git lib: destroy threadmaster condition variable Signed-off-by: Quentin Young --- 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);