mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
daemon_start: fixed clean-up of partially initialised thread pool in case of initialisation error
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user