[Aggregator] Do not skip cleaning tasks on exit

This commit is contained in:
Matteo Cypriani 2011-03-23 16:36:23 +01:00
parent fb18dd6e52
commit e53dc42e1b
1 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,8 @@ int main(int argc, char **argv)
fprintf(stderr,
"Error! Cannot listen on port %"PRIuFAST16".\n",
listening_port) ;
return ERR_CREATING_SOCKET ;
ret = ERR_CREATING_SOCKET ;
goto exit ;
}
/* Set up threads */
@ -63,6 +64,7 @@ int main(int argc, char **argv)
run = TRUE ;
ret = read_loop(sockfd) ;
exit:
(void) close(sockfd) ; // Close socket
free_request_list() ;
free_ap_list() ;