From cb49ec48d0bb6f804a1b6d2ca7de9a55aa6e491d Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Mon, 22 Aug 2022 15:22:49 +0800 Subject: [PATCH] fix(query): fix pthread_create memleak in shell engine TD-17791 --- tools/shell/src/shellMain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/shell/src/shellMain.c b/tools/shell/src/shellMain.c index 703533f8a9..964082f3c3 100644 --- a/tools/shell/src/shellMain.c +++ b/tools/shell/src/shellMain.c @@ -19,6 +19,7 @@ SShellObj shell = {0}; int main(int argc, char *argv[]) { + shell.exit = false; #ifdef WEBSOCKET shell.args.timeout = 10; shell.args.cloud = true; @@ -46,7 +47,7 @@ int main(int argc, char *argv[]) { shellPrintHelp(); return 0; } -#ifdef WEBSOCKET +#ifdef WEBSOCKET shellCheckConnectMode(); #endif taos_init();