fix memory leak

This commit is contained in:
lichuang 2021-05-10 17:01:38 +08:00
parent ad0ced4f9f
commit 00836e137c
1 changed files with 3 additions and 2 deletions

View File

@ -792,8 +792,7 @@ static void tsdbFreeTable(STable *pTable) {
kvRowFree(pTable->tagVal);
tSkipListDestroy(pTable->pIndex);
taosTZfree(pTable->lastRow);
tfree(pTable->lastCols);
taosTZfree(pTable->lastRow);
tfree(pTable->sql);
for (int i = 0; i < pTable->lastColNum; ++i) {
@ -802,6 +801,8 @@ static void tsdbFreeTable(STable *pTable) {
}
free(pTable->lastCols[i].pData);
}
tfree(pTable->lastCols);
free(pTable);
}
}