From 98c6541427fd515f27ed7bd8f3c26c6c90bb35e1 Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Mon, 29 Jul 2024 09:48:04 +0800 Subject: [PATCH] fix: array push issue --- source/libs/executor/src/dynqueryctrloperator.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/libs/executor/src/dynqueryctrloperator.c b/source/libs/executor/src/dynqueryctrloperator.c index 3b025685dc..5359cc0980 100644 --- a/source/libs/executor/src/dynqueryctrloperator.c +++ b/source/libs/executor/src/dynqueryctrloperator.c @@ -248,7 +248,11 @@ static int32_t buildExchangeOperatorParam(SOperatorParam** ppRes, int32_t downst taosMemoryFree(pExc); return terrno; } - taosArrayPush(pExc->basic.uidList, pUid); + if (NULL == taosArrayPush(pExc->basic.uidList, pUid)) { + taosArrayDestroy(pExc->basic.uidList); + taosMemoryFree(pExc); + return terrno; + } (*ppRes)->opType = QUERY_NODE_PHYSICAL_PLAN_EXCHANGE; (*ppRes)->downstreamIdx = downstreamIdx;