fix: function return code issue

This commit is contained in:
dapan1121 2024-09-27 09:04:55 +08:00
parent b0209fa463
commit cdeb534125
1 changed files with 4 additions and 1 deletions

View File

@ -1225,8 +1225,11 @@ static int32_t taosCreateTable(TAOS* taos, void* meta, int32_t metaLen) {
if (code != TSDB_CODE_SUCCESS) { if (code != TSDB_CODE_SUCCESS) {
goto end; goto end;
} }
if (NULL == taosArrayPush(pTagList, &ppTag)) {
tTagFree(ppTag);
goto end;
}
pCreateReq->ctb.pTag = (uint8_t*)ppTag; pCreateReq->ctb.pTag = (uint8_t*)ppTag;
taosArrayPush(pTagList, &ppTag);
} }
taosArrayDestroy(pTagVals); taosArrayDestroy(pTagVals);
} }