fix memory leak
This commit is contained in:
parent
ad0ced4f9f
commit
00836e137c
|
@ -792,8 +792,7 @@ static void tsdbFreeTable(STable *pTable) {
|
||||||
kvRowFree(pTable->tagVal);
|
kvRowFree(pTable->tagVal);
|
||||||
|
|
||||||
tSkipListDestroy(pTable->pIndex);
|
tSkipListDestroy(pTable->pIndex);
|
||||||
taosTZfree(pTable->lastRow);
|
taosTZfree(pTable->lastRow);
|
||||||
tfree(pTable->lastCols);
|
|
||||||
tfree(pTable->sql);
|
tfree(pTable->sql);
|
||||||
|
|
||||||
for (int i = 0; i < pTable->lastColNum; ++i) {
|
for (int i = 0; i < pTable->lastColNum; ++i) {
|
||||||
|
@ -802,6 +801,8 @@ static void tsdbFreeTable(STable *pTable) {
|
||||||
}
|
}
|
||||||
free(pTable->lastCols[i].pData);
|
free(pTable->lastCols[i].pData);
|
||||||
}
|
}
|
||||||
|
tfree(pTable->lastCols);
|
||||||
|
|
||||||
free(pTable);
|
free(pTable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue