Free all memory in case the hub does not start because of port already in use.

This commit is contained in:
Jan Vidar Krey 2012-10-17 20:54:46 +02:00
parent c50eb90bee
commit 4385266bb7

View File

@ -136,7 +136,13 @@ int main_loop()
{ {
hub = hub_start_service(&configuration); hub = hub_start_service(&configuration);
if (!hub) if (!hub)
{
acl_shutdown(&acl);
free_config(&configuration);
net_destroy();
hub_log_shutdown();
return -1; return -1;
}
#if !defined(WIN32) #if !defined(WIN32)
setup_signal_handlers(hub); setup_signal_handlers(hub);
#endif #endif