fix memory leave and hang when handle_error
This commit is contained in:
parent
e3946383f4
commit
26e3c21c87
4 changed files with 12 additions and 4 deletions
|
|
@ -285,6 +285,7 @@ static int handle_connection(struct epoll_event* p)
|
|||
ep2->iomgr = iomgr;
|
||||
|
||||
endpoint_set_owner(ep2, c);
|
||||
endpoint_set_peer(ep2, c->myhost);
|
||||
endpoint_set_msg_handler(ep2, (msg_handler_t)handle_msg);
|
||||
endpoint_set_err_handler(ep2, (err_handler_t)handle_endpoint_error);
|
||||
|
||||
|
|
|
|||
|
|
@ -575,7 +575,7 @@ int cmd_workerlist(int argc, char* argv[])
|
|||
workers[i]->attrs->maxtmp, workers[i]->attrs->ndisks);
|
||||
}
|
||||
|
||||
free(workers);
|
||||
free_Worker_list(rc, workers);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue