fix(shell): threads array destroydump

This commit is contained in:
Alex Duan 2022-10-09 10:34:16 +08:00
parent c71600bae8
commit ff73c3f5f2
3 changed files with 1 additions and 1 deletions

View File

@ -772,7 +772,7 @@ void shellAutoExit() {
taosThreadMutexDestroy(&tiresMutex);
// free threads
for (int32_t i = 0; i < WT_VAR_CNT; i++) {
for (int32_t i = 0; i < WT_FROM_DB_CNT; i++) {
if (threads[i]) {
taosDestroyThread(threads[i]);
threads[i] = NULL;