未验证 提交 c19a915e 编写于 作者: D dapan1121 提交者: GitHub

Merge pull request #17809 from taosdata/feature/TD-20100

fix(executor): Batch Partition Operator memory leak
...@@ -621,9 +621,10 @@ int32_t* setupColumnOffset(const SSDataBlock* pBlock, int32_t rowCapacity) { ...@@ -621,9 +621,10 @@ int32_t* setupColumnOffset(const SSDataBlock* pBlock, int32_t rowCapacity) {
} }
static void clearPartitionOperator(SPartitionOperatorInfo* pInfo) { static void clearPartitionOperator(SPartitionOperatorInfo* pInfo) {
void* ite = NULL; int32_t size = taosArrayGetSize(pInfo->sortedGroupArray);
while ((ite = taosHashIterate(pInfo->pGroupSet, ite)) != NULL) { for (int32_t i = 0; i < size; i++) {
taosArrayDestroy(((SDataGroupInfo*)ite)->pPageList); SDataGroupInfo* pGp = taosArrayGet(pInfo->sortedGroupArray, i);
taosArrayDestroy(pGp->pPageList);
} }
taosArrayClear(pInfo->sortedGroupArray); taosArrayClear(pInfo->sortedGroupArray);
clearDiskbasedBuf(pInfo->pBuf); clearDiskbasedBuf(pInfo->pBuf);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册