summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/workqueue.c1
1 files changed, 1 insertions, 0 deletions
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;