diff --git a/src/mnode/src/mnodeTable.c b/src/mnode/src/mnodeTable.c index e1cae0d05427e0a46e1f95c9fa4f0a0b8e085fe2..11178a143e6226c10b68162fc071750ba43245d1 100644 --- a/src/mnode/src/mnodeTable.c +++ b/src/mnode/src/mnodeTable.c @@ -2854,6 +2854,7 @@ static int32_t mnodeProcessMultiTableMetaMsg(SMnodeMsg *pMsg) { int32_t code = TSDB_CODE_SUCCESS; char* str = strndup(pInfo->tableNames, contLen); char** nameList = strsplit(str, ",", &num); + SArray* pList = taosArrayInit(4, POINTER_BYTES); SMultiTableMeta *pMultiMeta = NULL; if (num != pInfo->numOfTables + pInfo->numOfVgroups) { @@ -2873,8 +2874,6 @@ static int32_t mnodeProcessMultiTableMetaMsg(SMnodeMsg *pMsg) { pMultiMeta->contLen = sizeof(SMultiTableMeta); pMultiMeta->numOfTables = 0; - SArray* pList = taosArrayInit(4, POINTER_BYTES); - int32_t t = 0; for (; t < pInfo->numOfTables; ++t) { char *fullName = nameList[t];