# HG changeset patch # User Olaf Wintermann # Date 1748286150 -7200 # Node ID 4a049e4160214307b29cbe1ddbfe288d24db4a90 # Parent 315c625bf141853893993ee47a35c39d71000dce memset threadpool object diff -r 315c625bf141 -r 4a049e416021 src/server/util/thrpool.c --- a/src/server/util/thrpool.c Mon May 26 21:02:14 2025 +0200 +++ b/src/server/util/thrpool.c Mon May 26 21:02:30 2025 +0200 @@ -38,6 +38,7 @@ threadpool_t* threadpool_new(int min, int max) { log_ereport(LOG_INFORM, "new threadpool (min: %d, max: %d)", min, max); threadpool_t *pool = malloc(sizeof(threadpool_t)); + memset(pool, 0, sizeof(threadpool_t)); pool->queue = NULL; pool->queue_len = 0; pool->num_idle = 0;