fix: memory leak

This commit is contained in:
Hongze Cheng 2023-12-04 16:48:43 +08:00
parent cea4be6f3c
commit ac2d9ebc27
1 changed files with 3 additions and 0 deletions

View File

@ -770,6 +770,9 @@ int32_t tsdbDisableAndCancelAllBgTask(STsdb *pTsdb) {
taosThreadMutexUnlock(&fs->tsdb->mutex);
// destroy all channels
int64_t channel;
TARRAY2_FOREACH(&channelArr, channel) { vnodeAChannelDestroy(vnodeAsyncHandle[1], channel, true); }
TARRAY2_DESTROY(&channelArr, NULL);
return 0;
}