fix: partition node memory leak

This commit is contained in:
dapan1121 2024-08-23 16:15:14 +08:00
parent c998f31044
commit 7c15c54f4b
1 changed files with 1 additions and 0 deletions

View File

@ -6493,6 +6493,7 @@ static int32_t partitionColsOpt(SOptimizeContext* pCxt, SLogicSubplan* pLogicSub
pSort->calcGroupId = true; pSort->calcGroupId = true;
code = replaceLogicNode(pLogicSubplan, (SLogicNode*)pNode, (SLogicNode*)pSort); code = replaceLogicNode(pLogicSubplan, (SLogicNode*)pNode, (SLogicNode*)pSort);
if (code == TSDB_CODE_SUCCESS) { if (code == TSDB_CODE_SUCCESS) {
nodesDestroyNode((SNode*)pNode);
pCxt->optimized = true; pCxt->optimized = true;
} else { } else {
nodesDestroyNode((SNode*)pSort); nodesDestroyNode((SNode*)pSort);