Merge pull request #27437 from taosdata/fix/TD-31640
fix: partition node memory leak
This commit is contained in:
commit
059eb2bad5
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue