From cdeb534125ee822f3d26176c4dbe342bd9eacba7 Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Fri, 27 Sep 2024 09:04:55 +0800 Subject: [PATCH] fix: function return code issue --- source/client/src/clientRawBlockWrite.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/client/src/clientRawBlockWrite.c b/source/client/src/clientRawBlockWrite.c index 4ac9188e4a..b90ee3073e 100644 --- a/source/client/src/clientRawBlockWrite.c +++ b/source/client/src/clientRawBlockWrite.c @@ -1225,8 +1225,11 @@ static int32_t taosCreateTable(TAOS* taos, void* meta, int32_t metaLen) { if (code != TSDB_CODE_SUCCESS) { goto end; } + if (NULL == taosArrayPush(pTagList, &ppTag)) { + tTagFree(ppTag); + goto end; + } pCreateReq->ctb.pTag = (uint8_t*)ppTag; - taosArrayPush(pTagList, &ppTag); } taosArrayDestroy(pTagVals); }