]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
release mutex before destroying it. Helps with #4465
authorAlan T. DeKok <aland@freeradius.org>
Tue, 26 Apr 2022 13:00:07 +0000 (09:00 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 26 Apr 2022 13:00:46 +0000 (09:00 -0400)
src/lib/server/pool.c

index 3a2b8aa9663dcb42f818c6d0d56a05664800c5e8..2269c9603c585bed06833bf50ebe1a4d024022f3 100644 (file)
@@ -1340,6 +1340,7 @@ void fr_pool_free(fr_pool_t *pool)
        fr_assert(pool->tail == NULL);
        fr_assert(pool->state.num == 0);
 
+       pthread_mutex_unlock(&pool->mutex);
        pthread_mutex_destroy(&pool->mutex);
        pthread_cond_destroy(&pool->done_spawn);
        pthread_cond_destroy(&pool->done_reconnecting);