diff --git a/src/mhd2/daemon_start.c b/src/mhd2/daemon_start.c index 04fd1ce4..5593c2c9 100644 --- a/src/mhd2/daemon_start.c +++ b/src/mhd2/daemon_start.c @@ -2491,14 +2491,13 @@ init_workers_pool (struct MHD_Daemon *restrict d, if (MHD_SC_OK == res) continue; /* Process the next worker */ + /* Below is a clean-up of the current slot */ + #ifdef MHD_USE_EPOLL if (mhd_POLL_TYPE_EPOLL == worker->events.poll_type) deinit_epoll (worker); #endif /* MHD_USE_EPOLL */ - - /* Below is the clean-up of the current slot */ } - free (worker); break; } if (num_workers == i)