fix: table would be null when destroy commit handle
This commit is contained in:
parent
17fe1d44da
commit
67ae3c2efa
|
@ -485,8 +485,10 @@ static void tsdbDestroyCommitIters(SCommitH *pCommith) {
|
||||||
|
|
||||||
for (int i = 1; i < pCommith->niters; i++) {
|
for (int i = 1; i < pCommith->niters; i++) {
|
||||||
tSkipListDestroyIter(pCommith->iters[i].pIter);
|
tSkipListDestroyIter(pCommith->iters[i].pIter);
|
||||||
|
if (pCommith->iters[i].pTable) {
|
||||||
tdFreeSchema(pCommith->iters[i].pTable->pSchema);
|
tdFreeSchema(pCommith->iters[i].pTable->pSchema);
|
||||||
taosMemoryFree(pCommith->iters[i].pTable);
|
taosMemoryFreeClear(pCommith->iters[i].pTable);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
taosMemoryFree(pCommith->iters);
|
taosMemoryFree(pCommith->iters);
|
||||||
|
|
Loading…
Reference in New Issue