Merge pull request #26822 from taosdata/fix/dynIssue

fix: array push issue
This commit is contained in:
dapan1121 2024-07-29 09:49:11 +08:00 committed by GitHub
commit c1d899aa1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -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;