fix(query): fix pthread_create memleak in shell engine

TD-17791
This commit is contained in:
Ganlin Zhao 2022-08-22 15:22:49 +08:00
parent 70df538180
commit cb49ec48d0
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@
SShellObj shell = {0}; SShellObj shell = {0};
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
shell.exit = false;
#ifdef WEBSOCKET #ifdef WEBSOCKET
shell.args.timeout = 10; shell.args.timeout = 10;
shell.args.cloud = true; shell.args.cloud = true;
@ -46,7 +47,7 @@ int main(int argc, char *argv[]) {
shellPrintHelp(); shellPrintHelp();
return 0; return 0;
} }
#ifdef WEBSOCKET #ifdef WEBSOCKET
shellCheckConnectMode(); shellCheckConnectMode();
#endif #endif
taos_init(); taos_init();