fix(query): fix pthread_create memleak in shell engine
TD-17791
This commit is contained in:
parent
70df538180
commit
cb49ec48d0
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue