提交 a1c4572a 编写于 作者: 5 54liuyao

fix(executor): Batch Partition Operator memory leak

上级 d53ab62f
...@@ -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.
先完成此消息的编辑!
想要评论请 注册