fix: return error code instead of just out of memory

This commit is contained in:
shenglian zhou 2024-02-26 10:22:48 +08:00
parent c52f064670
commit ca6ed89f6f
1 changed files with 1 additions and 1 deletions

View File

@ -461,7 +461,7 @@ SOperatorInfo* createIndefinitOutputOperatorInfo(SOperatorInfo* downstream, SPhy
_error:
destroyIndefinitOperatorInfo(pInfo);
taosMemoryFree(pOperator);
pTaskInfo->code = TSDB_CODE_OUT_OF_MEMORY;
pTaskInfo->code = code;
return NULL;
}