Merge pull request #17986 from taosdata/feature/TD-20283
fix(operator):partition operator memory leak
This commit is contained in:
commit
ba34b7477f
|
@ -918,6 +918,8 @@ static SSDataBlock* buildStreamPartitionResult(SOperatorInfo* pOperator) {
|
||||||
blockDataDestroy(pResBlock);
|
blockDataDestroy(pResBlock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
taosArrayDestroy(pParInfo->rowIds);
|
||||||
|
pParInfo->rowIds = NULL;
|
||||||
blockDataUpdateTsWindow(pDest, pInfo->tsColIndex);
|
blockDataUpdateTsWindow(pDest, pInfo->tsColIndex);
|
||||||
pDest->info.groupId = pParInfo->groupId;
|
pDest->info.groupId = pParInfo->groupId;
|
||||||
pOperator->resultInfo.totalRows += pDest->info.rows;
|
pOperator->resultInfo.totalRows += pDest->info.rows;
|
||||||
|
@ -1016,6 +1018,7 @@ static void destroyStreamPartitionOperatorInfo(void* param) {
|
||||||
cleanupExprSupp(&pInfo->tbnameCalSup);
|
cleanupExprSupp(&pInfo->tbnameCalSup);
|
||||||
cleanupExprSupp(&pInfo->tagCalSup);
|
cleanupExprSupp(&pInfo->tagCalSup);
|
||||||
blockDataDestroy(pInfo->pDelRes);
|
blockDataDestroy(pInfo->pDelRes);
|
||||||
|
taosHashCleanup(pInfo->pPartitions);
|
||||||
taosMemoryFreeClear(param);
|
taosMemoryFreeClear(param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue