Free all memory in case the hub does not start because of port already in use.
This commit is contained in:
parent
c50eb90bee
commit
4385266bb7
@ -136,7 +136,13 @@ int main_loop()
|
||||
{
|
||||
hub = hub_start_service(&configuration);
|
||||
if (!hub)
|
||||
{
|
||||
acl_shutdown(&acl);
|
||||
free_config(&configuration);
|
||||
net_destroy();
|
||||
hub_log_shutdown();
|
||||
return -1;
|
||||
}
|
||||
#if !defined(WIN32)
|
||||
setup_signal_handlers(hub);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user