free(svr->path);
#ifndef _WIN32
- if (svr->fd >= 0)
- close(svr->fd);
-
if (svr->fd_handler)
ecore_main_fd_handler_del(svr->fd_handler);
+ if (svr->fd >= 0)
+ close(svr->fd);
+
if (svr->write_buf)
free(svr->write_buf);
if (svr->path)
free(svr->path);
- if (svr->fd >= 0)
- close(svr->fd);
-
if (svr->fd_handler)
ecore_main_fd_handler_del(svr->fd_handler);
+ if (svr->fd >= 0)
+ close(svr->fd);
+
ecore_con_ssl_server_shutdown(svr);
free(svr);
return NULL;
unlink(svr->path);
ecore_con_ssl_server_shutdown(svr);
- if (svr->fd >= 0)
- close(svr->fd);
-
if (svr->name)
free(svr->name);
if (svr->fd_handler)
ecore_main_fd_handler_del(svr->fd_handler);
+ if (svr->fd >= 0)
+ close(svr->fd);
+
servers = eina_list_remove(servers, svr);
svr->data = NULL;
free(svr);
if (cl->host_server->type & ECORE_CON_SSL)
ecore_con_ssl_client_shutdown(cl);
- if (cl->fd >= 0)
- close(cl->fd);
-
if (cl->fd_handler)
ecore_main_fd_handler_del(cl->fd_handler);
+ if (cl->fd >= 0)
+ close(cl->fd);
+
if (cl->client_addr)
free(cl->client_addr);
cl->client_addr = NULL;
return ECORE_CALLBACK_RENEW;
error:
- close(new_fd);
if (cl && cl->fd_handler)
- ecore_main_fd_handler_del(cl->fd_handler);
+ {
+ ecore_main_fd_handler_del(cl->fd_handler);
+ close(cl->fd);
+ free(cl);
+ }
return ECORE_CALLBACK_RENEW;
}