diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2015-02-15 11:21:54 +0100 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2015-02-15 11:21:54 +0100 |
commit | 424edd57105ea6eaf96d7db66e00ac1298f9dc52 (patch) | |
tree | 7932709aa46f9dd92acd6333fb669ff431b76849 /src/common/workqueue.c | |
parent | 5644d92dd7081e4a18d7385e68cee907ba67c451 (diff) | |
download | tor-424edd57105ea6eaf96d7db66e00ac1298f9dc52.tar.gz tor-424edd57105ea6eaf96d7db66e00ac1298f9dc52.zip |
Don't leak a cond var when starting threads in a pool
Diffstat (limited to 'src/common/workqueue.c')
-rw-r--r-- | src/common/workqueue.c | 1 |
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; |