mirror of
https://github.com/fumiama/simple-dict.git
synced 2026-06-21 03:10:56 +08:00
修复内存泄漏
This commit is contained in:
2
server.c
2
server.c
@@ -559,7 +559,7 @@ static void accept_client() {
|
|||||||
signal(SIGQUIT, handle_quit);
|
signal(SIGQUIT, handle_quit);
|
||||||
signal(SIGPIPE, handle_pipe);
|
signal(SIGPIPE, handle_pipe);
|
||||||
pthread_attr_init(&attr);
|
pthread_attr_init(&attr);
|
||||||
pthread_attr_setdetachstate(&attr, 1);
|
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
|
||||||
init_crypto();
|
init_crypto();
|
||||||
init_dict_pool(get_unique_dict_fp());
|
init_dict_pool(get_unique_dict_fp());
|
||||||
if(pid < 0) puts("Error when forking a subprocess.");
|
if(pid < 0) puts("Error when forking a subprocess.");
|
||||||
|
|||||||
Reference in New Issue
Block a user