1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-09 20:50:31 +08:00

修复内存泄漏

This commit is contained in:
源文雨
2022-03-06 14:27:02 +08:00
parent 1c6b6365be
commit dc29acebf5

View File

@@ -559,7 +559,7 @@ static void accept_client() {
signal(SIGQUIT, handle_quit);
signal(SIGPIPE, handle_pipe);
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, 1);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
init_crypto();
init_dict_pool(get_unique_dict_fp());
if(pid < 0) puts("Error when forking a subprocess.");