fix: table would be null when destory commit handle

This commit is contained in:
Cary Xu 2022-05-12 11:53:47 +08:00
parent 17fe1d44da
commit 51094f3434
1 changed files with 4 additions and 2 deletions

View File

@ -485,8 +485,10 @@ static void tsdbDestroyCommitIters(SCommitH *pCommith) {
for (int i = 1; i < pCommith->niters; i++) {
tSkipListDestroyIter(pCommith->iters[i].pIter);
if (pCommith->iters[i].pTable) {
tdFreeSchema(pCommith->iters[i].pTable->pSchema);
taosMemoryFree(pCommith->iters[i].pTable);
taosMemoryFreeClear(pCommith->iters[i].pTable);
}
}
taosMemoryFree(pCommith->iters);