file_write_footer, added checks for the case of failed memory allocation. service.c serviceRestart, added check for return value of poll_add_dcb. In failure, service is not moved to SESSION_STATE_LISTENER state and listener counter is not increased.
file_write_footer, added checks for the case of failed memory allocation. service.c serviceRestart, added check for return value of poll_add_dcb. In failure, service is not moved to SESSION_STATE_LISTENER state and listener counter is not increased.