From: Sebastian Hahn Date: Sun, 15 Feb 2015 10:21:54 +0000 (+0100) Subject: Don't leak a cond var when starting threads in a pool X-Git-Tag: tor-0.2.6.3-alpha~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=424edd57105ea6eaf96d7db66e00ac1298f9dc52;p=thirdparty%2Ftor.git Don't leak a cond var when starting threads in a pool --- diff --git a/src/common/workqueue.c b/src/common/workqueue.c index 5da29d5ab9..e9466b8124 100644 --- a/src/common/workqueue.c +++ b/src/common/workqueue.c @@ -410,6 +410,7 @@ threadpool_new(int n_threads, pool->reply_queue = replyqueue; if (threadpool_start_threads(pool, n_threads) < 0) { + tor_cond_uninit(&pool->condition); tor_mutex_uninit(&pool->lock); tor_free(pool); return NULL;