mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Don't leak a cond var when starting threads in a pool
This commit is contained in:
parent
5644d92dd7
commit
424edd5710
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user