fix asan error

This commit is contained in:
Hongze Cheng 2022-12-04 14:50:58 +08:00
parent 0dce1e1047
commit f78efdac7e
1 changed files with 4 additions and 0 deletions

View File

@ -170,6 +170,10 @@ int32_t tsdbCommit(STsdb *pTsdb) {
// check
if (pMemTable->nRow == 0 && pMemTable->nDel == 0) {
taosThreadRwlockWrlock(&pTsdb->rwLock);
pTsdb->imem = NULL;
taosThreadRwlockUnlock(&pTsdb->rwLock);
tsdbUnrefMemTable(pMemTable);
goto _exit;
}