fix: return code check issue

This commit is contained in:
dapan1121 2024-08-20 14:13:06 +08:00
parent dcd8af8dae
commit b70ad8d3bb
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ static int32_t buildMergeJoinOperatorParam(SOperatorParam** ppRes, bool initPara
return code;
}
(*ppRes)->pChildren = taosArrayInit(2, POINTER_BYTES);
if (NULL == *ppRes) {
if (NULL == (*ppRes)->pChildren) {
code = terrno;
freeOperatorParam(pChild0, OP_GET_PARAM);
freeOperatorParam(pChild1, OP_GET_PARAM);