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
1 changed files with 6 additions and 0 deletions

View File

@ -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