Merge pull request #24875 from taosdata/szhou/fix/td-28544

fix: return error code instead of just out of memory
This commit is contained in:
dapan1121 2024-02-27 08:31:29 +08:00 committed by GitHub
commit 2a00b154e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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;
}