“308ac434152b043819d805cb1cc735d6851e6aeb”上不存在“docs-en/04-develop/03-insert-data/_go_line.mdx”
提交 00836e13 编写于 作者: L lichuang

fix memory leak

上级 ad0ced4f
...@@ -792,8 +792,7 @@ static void tsdbFreeTable(STable *pTable) { ...@@ -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) { ...@@ -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);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册