提交 2e5cc3f2 编写于 作者: wmmhello's avatar wmmhello

change taosArrayDestroy(*)->taosArrayDestroy(**)

上级 3dd18dde
...@@ -1296,10 +1296,10 @@ int tscSmlInsert(TAOS* taos, TAOS_SML_DATA_POINT* points, int numPoint, SSmlLine ...@@ -1296,10 +1296,10 @@ int tscSmlInsert(TAOS* taos, TAOS_SML_DATA_POINT* points, int numPoint, SSmlLine
clean_up: clean_up:
for (int i = 0; i < taosArrayGetSize(stableSchemas); ++i) { for (int i = 0; i < taosArrayGetSize(stableSchemas); ++i) {
SSmlSTableSchema* schema = taosArrayGet(stableSchemas, i); SSmlSTableSchema* schema = taosArrayGet(stableSchemas, i);
taosArrayDestroy(schema->fields); taosArrayDestroy(&schema->fields);
taosArrayDestroy(schema->tags); taosArrayDestroy(&schema->tags);
} }
taosArrayDestroy(stableSchemas); taosArrayDestroy(&stableSchemas);
return code; return code;
} }
...@@ -2496,7 +2496,7 @@ cleanup: ...@@ -2496,7 +2496,7 @@ cleanup:
destroySmlDataPoint(points+i); destroySmlDataPoint(points+i);
} }
taosArrayDestroy(lpPoints); taosArrayDestroy(&lpPoints);
tfree(info); tfree(info);
return code; return code;
......
...@@ -1106,7 +1106,7 @@ cleanup: ...@@ -1106,7 +1106,7 @@ cleanup:
destroySmlDataPoint(points+i); destroySmlDataPoint(points+i);
} }
taosArrayDestroy(lpPoints); taosArrayDestroy(&lpPoints);
tfree(info); tfree(info);
return code; return code;
......
...@@ -1924,7 +1924,7 @@ int taos_stmt_close(TAOS_STMT* stmt) { ...@@ -1924,7 +1924,7 @@ int taos_stmt_close(TAOS_STMT* stmt) {
pStmt->pSql->cmd.insertParam.pTableBlockHashList = NULL; pStmt->pSql->cmd.insertParam.pTableBlockHashList = NULL;
} }
taosArrayDestroy(pStmt->mtb.tags); taosArrayDestroy(&pStmt->mtb.tags);
tfree(pStmt->mtb.sqlstr); tfree(pStmt->mtb.sqlstr);
} }
} }
......
...@@ -1835,7 +1835,7 @@ static int32_t handleScalarTypeExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, int32 ...@@ -1835,7 +1835,7 @@ static int32_t handleScalarTypeExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, int32
int32_t ret = exprTreeFromSqlExpr(pCmd, &pNode, pItem->pNode, pQueryInfo, colList, NULL); int32_t ret = exprTreeFromSqlExpr(pCmd, &pNode, pItem->pNode, pQueryInfo, colList, NULL);
if (ret != TSDB_CODE_SUCCESS) { if (ret != TSDB_CODE_SUCCESS) {
taosArrayDestroy(colList); taosArrayDestroy(&colList);
tExprTreeDestroy(pNode, NULL); tExprTreeDestroy(pNode, NULL);
if (tscGetErrorMsgLength(pCmd) > 0) { if (tscGetErrorMsgLength(pCmd) > 0) {
return ret; return ret;
...@@ -1850,7 +1850,7 @@ static int32_t handleScalarTypeExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, int32 ...@@ -1850,7 +1850,7 @@ static int32_t handleScalarTypeExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, int32
SColIndex* pIndex = taosArrayGet(colList, k); SColIndex* pIndex = taosArrayGet(colList, k);
if (TSDB_COL_IS_TAG(pIndex->flag)) { if (TSDB_COL_IS_TAG(pIndex->flag)) {
tExprTreeDestroy(pNode, NULL); tExprTreeDestroy(pNode, NULL);
taosArrayDestroy(colList); taosArrayDestroy(&colList);
return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), msg3); return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), msg3);
} }
...@@ -1858,7 +1858,7 @@ static int32_t handleScalarTypeExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, int32 ...@@ -1858,7 +1858,7 @@ static int32_t handleScalarTypeExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, int32
ret = exprTreeValidateTree(tscGetErrorMsgPayload(pCmd), pNode); ret = exprTreeValidateTree(tscGetErrorMsgPayload(pCmd), pNode);
if (ret != TSDB_CODE_SUCCESS) { if (ret != TSDB_CODE_SUCCESS) {
taosArrayDestroy(colList); taosArrayDestroy(&colList);
tExprTreeDestroy(pNode, NULL); tExprTreeDestroy(pNode, NULL);
if (tscGetErrorMsgLength(pCmd) > 0) { if (tscGetErrorMsgLength(pCmd) > 0) {
return ret; return ret;
...@@ -1899,7 +1899,7 @@ static int32_t handleScalarTypeExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, int32 ...@@ -1899,7 +1899,7 @@ static int32_t handleScalarTypeExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, int32
tscInsertPrimaryTsSourceColumn(pQueryInfo, pExpr->base.uid); tscInsertPrimaryTsSourceColumn(pQueryInfo, pExpr->base.uid);
tbufCloseWriter(&bw); tbufCloseWriter(&bw);
taosArrayDestroy(colList); taosArrayDestroy(&colList);
tExprTreeDestroy(pNode, NULL); tExprTreeDestroy(pNode, NULL);
return TSDB_CODE_SUCCESS; return TSDB_CODE_SUCCESS;
...@@ -4290,7 +4290,7 @@ static int32_t getColQueryCondExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, tSqlEx ...@@ -4290,7 +4290,7 @@ static int32_t getColQueryCondExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, tSqlEx
SArray* colList = taosArrayInit(10, sizeof(SColIndex)); SArray* colList = taosArrayInit(10, sizeof(SColIndex));
ret = exprTreeFromSqlExpr(pCmd, &p, p1, pQueryInfo, colList, NULL); ret = exprTreeFromSqlExpr(pCmd, &p, p1, pQueryInfo, colList, NULL);
taosArrayDestroy(colList); taosArrayDestroy(&colList);
SBufferWriter bw = tbufInitWriter(NULL, false); SBufferWriter bw = tbufInitWriter(NULL, false);
...@@ -5727,7 +5727,7 @@ static int32_t getTagQueryCondExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, SCondE ...@@ -5727,7 +5727,7 @@ static int32_t getTagQueryCondExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, SCondE
tSqlExprDestroy(p1); tSqlExprDestroy(p1);
tExprTreeDestroy(p, NULL); //TODO tExprTreeDestroy(p, NULL); //TODO
taosArrayDestroy(colList); taosArrayDestroy(&colList);
if (pQueryInfo->tagCond.pCond != NULL && taosArrayGetSize(pQueryInfo->tagCond.pCond) > 0 && !UTIL_TABLE_IS_SUPER_TABLE(pTableMetaInfo)) { if (pQueryInfo->tagCond.pCond != NULL && taosArrayGetSize(pQueryInfo->tagCond.pCond) > 0 && !UTIL_TABLE_IS_SUPER_TABLE(pTableMetaInfo)) {
return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), "filter on tag not supported for normal table"); return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), "filter on tag not supported for normal table");
} }
...@@ -5849,7 +5849,7 @@ static int32_t getQueryTimeRange(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, tSqlExpr ...@@ -5849,7 +5849,7 @@ static int32_t getQueryTimeRange(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, tSqlExpr
SArray* colList = taosArrayInit(10, sizeof(SColIndex)); SArray* colList = taosArrayInit(10, sizeof(SColIndex));
ret = exprTreeFromSqlExpr(pCmd, &p, *pExpr, pQueryInfo, colList, NULL); ret = exprTreeFromSqlExpr(pCmd, &p, *pExpr, pQueryInfo, colList, NULL);
taosArrayDestroy(colList); taosArrayDestroy(&colList);
if (ret != TSDB_CODE_SUCCESS) { if (ret != TSDB_CODE_SUCCESS) {
goto _ret; goto _ret;
...@@ -9461,15 +9461,15 @@ int32_t loadAllTableMeta(SSqlObj* pSql, struct SSqlInfo* pInfo) { ...@@ -9461,15 +9461,15 @@ int32_t loadAllTableMeta(SSqlObj* pSql, struct SSqlInfo* pInfo) {
_end: _end:
if (plist != NULL) { if (plist != NULL) {
taosArrayDestroyEx(plist, freeElem); taosArrayDestroyEx(&plist, freeElem);
} }
if (pVgroupList != NULL) { if (pVgroupList != NULL) {
taosArrayDestroyEx(pVgroupList, freeElem); taosArrayDestroyEx(&pVgroupList, freeElem);
} }
if (tableNameList != NULL) { if (tableNameList != NULL) {
taosArrayDestroy(tableNameList); taosArrayDestroy(&tableNameList);
} }
tfree(pTableMeta); tfree(pTableMeta);
......
...@@ -1006,7 +1006,7 @@ int taos_load_table_info(TAOS *taos, const char *tableNameList) { ...@@ -1006,7 +1006,7 @@ int taos_load_table_info(TAOS *taos, const char *tableNameList) {
SArray* vgroupList = taosArrayInit(4, POINTER_BYTES); SArray* vgroupList = taosArrayInit(4, POINTER_BYTES);
if (vgroupList == NULL) { if (vgroupList == NULL) {
taosArrayDestroy(plist); taosArrayDestroy(&plist);
tfree(str); tfree(str);
return TSDB_CODE_TSC_OUT_OF_MEMORY; return TSDB_CODE_TSC_OUT_OF_MEMORY;
} }
...@@ -1023,8 +1023,8 @@ int taos_load_table_info(TAOS *taos, const char *tableNameList) { ...@@ -1023,8 +1023,8 @@ int taos_load_table_info(TAOS *taos, const char *tableNameList) {
if (code != TSDB_CODE_SUCCESS) { if (code != TSDB_CODE_SUCCESS) {
tscFreeSqlObj(pSql); tscFreeSqlObj(pSql);
taosArrayDestroyEx(plist, freeElem); taosArrayDestroyEx(&plist, freeElem);
taosArrayDestroyEx(vgroupList, freeElem); taosArrayDestroyEx(&vgroupList, freeElem);
return code; return code;
} }
...@@ -1037,8 +1037,8 @@ int taos_load_table_info(TAOS *taos, const char *tableNameList) { ...@@ -1037,8 +1037,8 @@ int taos_load_table_info(TAOS *taos, const char *tableNameList) {
code = TSDB_CODE_SUCCESS; code = TSDB_CODE_SUCCESS;
} }
taosArrayDestroyEx(plist, freeElem); taosArrayDestroyEx(&plist, freeElem);
taosArrayDestroyEx(vgroupList, freeElem); taosArrayDestroyEx(&vgroupList, freeElem);
if (code != TSDB_CODE_SUCCESS) { if (code != TSDB_CODE_SUCCESS) {
tscFreeRegisteredSqlObj(pSql); tscFreeRegisteredSqlObj(pSql);
......
...@@ -3903,7 +3903,7 @@ void* createQInfoFromQueryNode(SQueryInfo* pQueryInfo, STableGroupInfo* pTableGr ...@@ -3903,7 +3903,7 @@ void* createQInfoFromQueryNode(SQueryInfo* pQueryInfo, STableGroupInfo* pTableGr
STsBufInfo bufInfo = {0}; STsBufInfo bufInfo = {0};
SQueryParam param = {.pOperator = pa}; SQueryParam param = {.pOperator = pa};
/*int32_t code = */initQInfo(&bufInfo, NULL, pSourceOperator, pQInfo, &param, NULL, 0, merger); /*int32_t code = */initQInfo(&bufInfo, NULL, pSourceOperator, pQInfo, &param, NULL, 0, merger);
taosArrayDestroy(pa); taosArrayDestroy(&pa);
return pQInfo; return pQInfo;
......
...@@ -2675,7 +2675,7 @@ void tscExprDestroy(SArray* pExprInfo) { ...@@ -2675,7 +2675,7 @@ void tscExprDestroy(SArray* pExprInfo) {
sqlExprDestroy(pExpr); sqlExprDestroy(pExpr);
} }
taosArrayDestroy(pExprInfo); taosArrayDestroy(&pExprInfo);
} }
int32_t tscExprCopy(SArray* dst, const SArray* src, uint64_t uid, bool deepcopy) { int32_t tscExprCopy(SArray* dst, const SArray* src, uint64_t uid, bool deepcopy) {
...@@ -2883,7 +2883,7 @@ void tscColumnListDestroy(SArray* pColumnList) { ...@@ -2883,7 +2883,7 @@ void tscColumnListDestroy(SArray* pColumnList) {
tscColumnDestroy(pCol); tscColumnDestroy(pCol);
} }
taosArrayDestroy(pColumnList); taosArrayDestroy(&pColumnList);
} }
/* /*
...@@ -3260,7 +3260,7 @@ void tscColCondRelease(SArray** pCond) { ...@@ -3260,7 +3260,7 @@ void tscColCondRelease(SArray** pCond) {
tfree(p->cond); tfree(p->cond);
} }
taosArrayDestroy(*pCond); taosArrayDestroy(pCond);
*pCond = NULL; *pCond = NULL;
} }
...@@ -3274,7 +3274,7 @@ void tscTagCondRelease(STagCond* pTagCond) { ...@@ -3274,7 +3274,7 @@ void tscTagCondRelease(STagCond* pTagCond) {
tfree(p->cond); tfree(p->cond);
} }
taosArrayDestroy(pTagCond->pCond); taosArrayDestroy(&pTagCond->pCond);
} }
for (int32_t i = 0; i < TSDB_MAX_JOIN_TABLE_NUM; ++i) { for (int32_t i = 0; i < TSDB_MAX_JOIN_TABLE_NUM; ++i) {
...@@ -3284,11 +3284,11 @@ void tscTagCondRelease(STagCond* pTagCond) { ...@@ -3284,11 +3284,11 @@ void tscTagCondRelease(STagCond* pTagCond) {
} }
if (node->tsJoin != NULL) { if (node->tsJoin != NULL) {
taosArrayDestroy(node->tsJoin); taosArrayDestroy(&node->tsJoin);
} }
if (node->tagJoin != NULL) { if (node->tagJoin != NULL) {
taosArrayDestroy(node->tagJoin); taosArrayDestroy(&node->tagJoin);
} }
tfree(node); tfree(node);
...@@ -3471,7 +3471,7 @@ static void freeQueryInfoImpl(SQueryInfo* pQueryInfo) { ...@@ -3471,7 +3471,7 @@ static void freeQueryInfoImpl(SQueryInfo* pQueryInfo) {
pQueryInfo->colList = NULL; pQueryInfo->colList = NULL;
if (pQueryInfo->groupbyExpr.columnInfo != NULL) { if (pQueryInfo->groupbyExpr.columnInfo != NULL) {
taosArrayDestroy(pQueryInfo->groupbyExpr.columnInfo); taosArrayDestroy(&pQueryInfo->groupbyExpr.columnInfo);
pQueryInfo->groupbyExpr.columnInfo = NULL; pQueryInfo->groupbyExpr.columnInfo = NULL;
pQueryInfo->groupbyExpr.numOfGroupCols = 0; pQueryInfo->groupbyExpr.numOfGroupCols = 0;
} }
...@@ -3483,7 +3483,7 @@ static void freeQueryInfoImpl(SQueryInfo* pQueryInfo) { ...@@ -3483,7 +3483,7 @@ static void freeQueryInfoImpl(SQueryInfo* pQueryInfo) {
pQueryInfo->fillType = 0; pQueryInfo->fillType = 0;
tfree(pQueryInfo->buf); tfree(pQueryInfo->buf);
taosArrayDestroy(pQueryInfo->pUpstream); taosArrayDestroy(&pQueryInfo->pUpstream);
pQueryInfo->pUpstream = NULL; pQueryInfo->pUpstream = NULL;
pQueryInfo->bufLen = 0; pQueryInfo->bufLen = 0;
} }
...@@ -3618,10 +3618,10 @@ void tscFreeVgroupTableInfo(SArray* pVgroupTables) { ...@@ -3618,10 +3618,10 @@ void tscFreeVgroupTableInfo(SArray* pVgroupTables) {
tfree(pInfo->vgInfo.epAddr[j].fqdn); tfree(pInfo->vgInfo.epAddr[j].fqdn);
} }
#endif #endif
taosArrayDestroy(pInfo->itemList); taosArrayDestroy(&pInfo->itemList);
} }
taosArrayDestroy(pVgroupTables); taosArrayDestroy(&pVgroupTables);
} }
void tscRemoveVgroupTableGroup(SArray* pVgroupTable, int32_t index) { void tscRemoveVgroupTableGroup(SArray* pVgroupTable, int32_t index) {
...@@ -3635,7 +3635,7 @@ void tscRemoveVgroupTableGroup(SArray* pVgroupTable, int32_t index) { ...@@ -3635,7 +3635,7 @@ void tscRemoveVgroupTableGroup(SArray* pVgroupTable, int32_t index) {
// tfree(pInfo->vgInfo.epAddr[j].fqdn); // tfree(pInfo->vgInfo.epAddr[j].fqdn);
// } // }
taosArrayDestroy(pInfo->itemList); taosArrayDestroy(&pInfo->itemList);
taosArrayRemove(pVgroupTable, index); taosArrayRemove(pVgroupTable, index);
} }
......
...@@ -66,7 +66,7 @@ typedef struct SDiskbasedResultBuf { ...@@ -66,7 +66,7 @@ typedef struct SDiskbasedResultBuf {
SHashObj* groupSet; // id hash table SHashObj* groupSet; // id hash table
SHashObj* all; SHashObj* all;
SList* lruList; SList* lruList;
void* emptyDummyIdList; // dummy id list SArray * emptyDummyIdList; // dummy id list
void* assistBuf; // assistant buffer for compress/decompress data void* assistBuf; // assistant buffer for compress/decompress data
SArray* pFree; // free area in file SArray* pFree; // free area in file
bool comp; // compressed before flushed to disk bool comp; // compressed before flushed to disk
......
...@@ -4319,7 +4319,7 @@ void block_func_merge(SQLFunctionCtx* pCtx) { ...@@ -4319,7 +4319,7 @@ void block_func_merge(SQLFunctionCtx* pCtx) {
blockDistInfoFromBinary(((char*)pCtx->pInput) + sizeof(int32_t), len, &info); blockDistInfoFromBinary(((char*)pCtx->pInput) + sizeof(int32_t), len, &info);
SResultRowCellInfo *pResInfo = GET_RES_INFO(pCtx); SResultRowCellInfo *pResInfo = GET_RES_INFO(pCtx);
mergeTableBlockDist(pResInfo, &info); mergeTableBlockDist(pResInfo, &info);
taosArrayDestroy(info.dataBlockInfos); taosArrayDestroy(&info.dataBlockInfos);
pResInfo->numOfRes = 1; pResInfo->numOfRes = 1;
pResInfo->hasResult = DATA_SET_FLAG; pResInfo->hasResult = DATA_SET_FLAG;
...@@ -4427,7 +4427,7 @@ void blockinfo_func_finalizer(SQLFunctionCtx* pCtx) { ...@@ -4427,7 +4427,7 @@ void blockinfo_func_finalizer(SQLFunctionCtx* pCtx) {
generateBlockDistResult(pDist, pCtx->pOutput); generateBlockDistResult(pDist, pCtx->pOutput);
if (pDist->dataBlockInfos != NULL) { if (pDist->dataBlockInfos != NULL) {
taosArrayDestroy(pDist->dataBlockInfos); taosArrayDestroy(&pDist->dataBlockInfos);
pDist->dataBlockInfos = NULL; pDist->dataBlockInfos = NULL;
} }
......
...@@ -2304,8 +2304,8 @@ static void teardownQueryRuntimeEnv(SQueryRuntimeEnv *pRuntimeEnv) { ...@@ -2304,8 +2304,8 @@ static void teardownQueryRuntimeEnv(SQueryRuntimeEnv *pRuntimeEnv) {
destroyOperatorInfo(pRuntimeEnv->proot); destroyOperatorInfo(pRuntimeEnv->proot);
pRuntimeEnv->pool = destroyResultRowPool(pRuntimeEnv->pool); pRuntimeEnv->pool = destroyResultRowPool(pRuntimeEnv->pool);
taosArrayDestroy(pRuntimeEnv->pResultRowArrayList); taosArrayDestroy(&pRuntimeEnv->pResultRowArrayList);
taosArrayDestroyEx(pRuntimeEnv->prevResult, freeInterResult); taosArrayDestroyEx(&pRuntimeEnv->prevResult, freeInterResult);
pRuntimeEnv->prevResult = NULL; pRuntimeEnv->prevResult = NULL;
} }
...@@ -4414,7 +4414,7 @@ void calculateOperatorProfResults(SQInfo* pQInfo) { ...@@ -4414,7 +4414,7 @@ void calculateOperatorProfResults(SQInfo* pQInfo) {
} }
} }
taosArrayDestroy(opStack); taosArrayDestroy(&opStack);
} }
void queryCostStatis(SQInfo *pQInfo) { void queryCostStatis(SQInfo *pQInfo) {
...@@ -5370,14 +5370,14 @@ static void destroyGlobalAggOperatorInfo(void* param, int32_t numOfOutput) { ...@@ -5370,14 +5370,14 @@ static void destroyGlobalAggOperatorInfo(void* param, int32_t numOfOutput) {
SMultiwayMergeInfo *pInfo = (SMultiwayMergeInfo*) param; SMultiwayMergeInfo *pInfo = (SMultiwayMergeInfo*) param;
destroyBasicOperatorInfo(&pInfo->binfo, numOfOutput); destroyBasicOperatorInfo(&pInfo->binfo, numOfOutput);
taosArrayDestroy(pInfo->orderColumnList); taosArrayDestroy(&pInfo->orderColumnList);
taosArrayDestroy(pInfo->groupColumnList); taosArrayDestroy(&pInfo->groupColumnList);
tfree(pInfo->prevRow); tfree(pInfo->prevRow);
tfree(pInfo->currentGroupColData); tfree(pInfo->currentGroupColData);
} }
static void destroySlimitOperatorInfo(void* param, int32_t numOfOutput) { static void destroySlimitOperatorInfo(void* param, int32_t numOfOutput) {
SSLimitOperatorInfo *pInfo = (SSLimitOperatorInfo*) param; SSLimitOperatorInfo *pInfo = (SSLimitOperatorInfo*) param;
taosArrayDestroy(pInfo->orderColumnList); taosArrayDestroy(&pInfo->orderColumnList);
pInfo->pRes = destroyOutputBuf(pInfo->pRes); pInfo->pRes = destroyOutputBuf(pInfo->pRes);
tfree(pInfo->prevRow); tfree(pInfo->prevRow);
} }
...@@ -7035,7 +7035,7 @@ static void destroyDistinctOperatorInfo(void* param, int32_t numOfOutput) { ...@@ -7035,7 +7035,7 @@ static void destroyDistinctOperatorInfo(void* param, int32_t numOfOutput) {
SDistinctOperatorInfo* pInfo = (SDistinctOperatorInfo*) param; SDistinctOperatorInfo* pInfo = (SDistinctOperatorInfo*) param;
taosHashCleanup(pInfo->pSet); taosHashCleanup(pInfo->pSet);
tfree(pInfo->buf); tfree(pInfo->buf);
taosArrayDestroy(pInfo->pDistinctDataInfo); taosArrayDestroy(&pInfo->pDistinctDataInfo);
pInfo->pRes = destroyOutputBuf(pInfo->pRes); pInfo->pRes = destroyOutputBuf(pInfo->pRes);
} }
...@@ -9036,7 +9036,7 @@ _cleanup_qinfo: ...@@ -9036,7 +9036,7 @@ _cleanup_qinfo:
tsdbDestroyTableGroup(pTableGroupInfo); tsdbDestroyTableGroup(pTableGroupInfo);
if (pGroupbyExpr != NULL) { if (pGroupbyExpr != NULL) {
taosArrayDestroy(pGroupbyExpr->columnInfo); taosArrayDestroy(&pGroupbyExpr->columnInfo);
free(pGroupbyExpr); free(pGroupbyExpr);
} }
...@@ -9168,11 +9168,11 @@ static void doDestroyTableQueryInfo(STableGroupInfo* pTableqinfoGroupInfo) { ...@@ -9168,11 +9168,11 @@ static void doDestroyTableQueryInfo(STableGroupInfo* pTableqinfoGroupInfo) {
destroyTableQueryInfoImpl(item); destroyTableQueryInfoImpl(item);
} }
taosArrayDestroy(p); taosArrayDestroy(&p);
} }
} }
taosArrayDestroy(pTableqinfoGroupInfo->pGroupList); taosArrayDestroy(&pTableqinfoGroupInfo->pGroupList);
taosHashCleanup(pTableqinfoGroupInfo->map); taosHashCleanup(pTableqinfoGroupInfo->map);
pTableqinfoGroupInfo->pGroupList = NULL; pTableqinfoGroupInfo->pGroupList = NULL;
...@@ -9239,10 +9239,10 @@ void freeQInfo(SQInfo *pQInfo) { ...@@ -9239,10 +9239,10 @@ void freeQInfo(SQInfo *pQInfo) {
tfree(pQInfo->pBuf); tfree(pQInfo->pBuf);
tfree(pQInfo->sql); tfree(pQInfo->sql);
taosArrayDestroy(pQInfo->summary.queryProfEvents); taosArrayDestroy(&pQInfo->summary.queryProfEvents);
taosHashCleanup(pQInfo->summary.operatorProfResults); taosHashCleanup(pQInfo->summary.operatorProfResults);
taosArrayDestroy(pRuntimeEnv->groupResInfo.pRows); taosArrayDestroy(&pRuntimeEnv->groupResInfo.pRows);
pQInfo->signature = 0; pQInfo->signature = 0;
qDebug("QInfo:0x%"PRIx64" QInfo is freed", pQInfo->qId); qDebug("QInfo:0x%"PRIx64" QInfo is freed", pQInfo->qId);
...@@ -9433,7 +9433,7 @@ void freeQueryAttr(SQueryAttr* pQueryAttr) { ...@@ -9433,7 +9433,7 @@ void freeQueryAttr(SQueryAttr* pQueryAttr) {
pQueryAttr->tableCols = freeColumnInfo(pQueryAttr->tableCols, pQueryAttr->numOfCols); pQueryAttr->tableCols = freeColumnInfo(pQueryAttr->tableCols, pQueryAttr->numOfCols);
if (pQueryAttr->pGroupbyExpr != NULL) { if (pQueryAttr->pGroupbyExpr != NULL) {
taosArrayDestroy(pQueryAttr->pGroupbyExpr->columnInfo); taosArrayDestroy(&pQueryAttr->pGroupbyExpr->columnInfo);
tfree(pQueryAttr->pGroupbyExpr); tfree(pQueryAttr->pGroupbyExpr);
} }
......
...@@ -1512,8 +1512,8 @@ int32_t filterTreeToGroup(tExprNode* tree, SFilterInfo *info, SArray* group) { ...@@ -1512,8 +1512,8 @@ int32_t filterTreeToGroup(tExprNode* tree, SFilterInfo *info, SArray* group) {
ERR_JRET(filterDetachCnfGroups(group, leftGroup, rightGroup)); ERR_JRET(filterDetachCnfGroups(group, leftGroup, rightGroup));
taosArrayDestroyEx(leftGroup, filterFreeGroup); taosArrayDestroyEx(&leftGroup, filterFreeGroup);
taosArrayDestroyEx(rightGroup, filterFreeGroup); taosArrayDestroyEx(&rightGroup, filterFreeGroup);
return TSDB_CODE_SUCCESS; return TSDB_CODE_SUCCESS;
} }
...@@ -1530,8 +1530,8 @@ int32_t filterTreeToGroup(tExprNode* tree, SFilterInfo *info, SArray* group) { ...@@ -1530,8 +1530,8 @@ int32_t filterTreeToGroup(tExprNode* tree, SFilterInfo *info, SArray* group) {
_return: _return:
taosArrayDestroyEx(leftGroup, filterFreeGroup); taosArrayDestroyEx(&leftGroup, filterFreeGroup);
taosArrayDestroyEx(rightGroup, filterFreeGroup); taosArrayDestroyEx(&rightGroup, filterFreeGroup);
return code; return code;
} }
...@@ -1696,7 +1696,7 @@ void filterFreeColInfo(void *data) { ...@@ -1696,7 +1696,7 @@ void filterFreeColInfo(void *data) {
} else if (info->type == RANGE_TYPE_MR_CTX) { } else if (info->type == RANGE_TYPE_MR_CTX) {
filterFreeRangeCtx(info->info); filterFreeRangeCtx(info->info);
} else if (info->type == RANGE_TYPE_UNIT) { } else if (info->type == RANGE_TYPE_UNIT) {
taosArrayDestroy((SArray *)info->info); taosArrayDestroy((SArray**)&info->info);
} }
//NO NEED TO FREE UNIT //NO NEED TO FREE UNIT
...@@ -2067,7 +2067,7 @@ int32_t filterMergeUnits(SFilterInfo *info, SFilterGroupCtx* gRes, uint32_t colI ...@@ -2067,7 +2067,7 @@ int32_t filterMergeUnits(SFilterInfo *info, SFilterGroupCtx* gRes, uint32_t colI
} }
} }
taosArrayDestroy(colArray); taosArrayDestroy(&colArray);
FILTER_PUSH_CTX(gRes->colInfo[colIdx], ctx); FILTER_PUSH_CTX(gRes->colInfo[colIdx], ctx);
...@@ -2325,7 +2325,7 @@ int32_t filterMergeTwoGroups(SFilterInfo *info, SFilterGroupCtx** gRes1, SFilter ...@@ -2325,7 +2325,7 @@ int32_t filterMergeTwoGroups(SFilterInfo *info, SFilterGroupCtx** gRes1, SFilter
FILTER_PUSH_CTX((*gRes1)->colInfo[pctx->colIdx], pctx->ctx); FILTER_PUSH_CTX((*gRes1)->colInfo[pctx->colIdx], pctx->ctx);
} }
taosArrayDestroy(colCtxs); taosArrayDestroy(&colCtxs);
return TSDB_CODE_SUCCESS; return TSDB_CODE_SUCCESS;
...@@ -2333,9 +2333,9 @@ _return: ...@@ -2333,9 +2333,9 @@ _return:
if (colCtxs) { if (colCtxs) {
if (taosArrayGetSize(colCtxs) > 0) { if (taosArrayGetSize(colCtxs) > 0) {
taosArrayDestroyEx(colCtxs, filterFreeColCtx); taosArrayDestroyEx(&colCtxs, filterFreeColCtx);
} else { } else {
taosArrayDestroy(colCtxs); taosArrayDestroy(&colCtxs);
} }
} }
...@@ -2511,7 +2511,7 @@ int32_t filterRewrite(SFilterInfo *info, SFilterGroupCtx** gRes, int32_t gResNum ...@@ -2511,7 +2511,7 @@ int32_t filterRewrite(SFilterInfo *info, SFilterGroupCtx** gRes, int32_t gResNum
filterConvertGroupFromArray(info, group); filterConvertGroupFromArray(info, group);
taosArrayDestroy(group); taosArrayDestroy(&group);
filterFreeInfo(&oinfo); filterFreeInfo(&oinfo);
...@@ -3349,7 +3349,7 @@ int32_t filterInitFromTree(tExprNode* tree, void **pinfo, uint32_t options) { ...@@ -3349,7 +3349,7 @@ int32_t filterInitFromTree(tExprNode* tree, void **pinfo, uint32_t options) {
ERR_JRET(code); ERR_JRET(code);
filterConvertGroupFromArray(info, group); filterConvertGroupFromArray(info, group);
taosArrayDestroy(group); taosArrayDestroy(&group);
ERR_JRET(filterInitValFieldData(info)); ERR_JRET(filterInitValFieldData(info));
......
...@@ -944,8 +944,8 @@ static void freeCommonItem(void *pItem) { ...@@ -944,8 +944,8 @@ static void freeCommonItem(void *pItem) {
void freeCreateTableInfo(void* p) { void freeCreateTableInfo(void* p) {
SCreatedTableInfo* pInfo = (SCreatedTableInfo*) p; SCreatedTableInfo* pInfo = (SCreatedTableInfo*) p;
taosArrayDestroy(pInfo->pTagNames); taosArrayDestroy(&pInfo->pTagNames);
taosArrayDestroyEx(pInfo->pTagVals, freeVariant); taosArrayDestroyEx(&pInfo->pTagVals, freeVariant);
tfree(pInfo->fullname); tfree(pInfo->fullname);
tfree(pInfo->tagdata.data); tfree(pInfo->tagdata.data);
} }
...@@ -961,15 +961,15 @@ void destroySqlNode(SSqlNode *pSqlNode) { ...@@ -961,15 +961,15 @@ void destroySqlNode(SSqlNode *pSqlNode) {
tSqlExprDestroy(pSqlNode->pWhere); tSqlExprDestroy(pSqlNode->pWhere);
pSqlNode->pWhere = NULL; pSqlNode->pWhere = NULL;
taosArrayDestroyEx(pSqlNode->pSortOrder, freeCommonItem); taosArrayDestroyEx(&pSqlNode->pSortOrder, freeCommonItem);
pSqlNode->pSortOrder = NULL; pSqlNode->pSortOrder = NULL;
taosArrayDestroyEx(pSqlNode->pGroupby, freeCommonItem); taosArrayDestroyEx(&pSqlNode->pGroupby, freeCommonItem);
pSqlNode->pGroupby = NULL; pSqlNode->pGroupby = NULL;
pSqlNode->from = destroyRelationInfo(pSqlNode->from); pSqlNode->from = destroyRelationInfo(pSqlNode->from);
taosArrayDestroyEx(pSqlNode->fillType, freeVariant); taosArrayDestroyEx(&pSqlNode->fillType, freeVariant);
pSqlNode->fillType = NULL; pSqlNode->fillType = NULL;
tSqlExprDestroy(pSqlNode->pHaving); tSqlExprDestroy(pSqlNode->pHaving);
...@@ -987,7 +987,7 @@ void destroyAllSqlNode(SArray *pList) { ...@@ -987,7 +987,7 @@ void destroyAllSqlNode(SArray *pList) {
destroySqlNode(pNode); destroySqlNode(pNode);
} }
taosArrayDestroy(pList); taosArrayDestroy(&pList);
} }
SCreateTableSql *tSetCreateTableInfo(SArray *pCols, SArray *pTags, SSqlNode *pSelect, int32_t type) { SCreateTableSql *tSetCreateTableInfo(SArray *pCols, SArray *pTags, SSqlNode *pSelect, int32_t type) {
...@@ -1060,10 +1060,10 @@ SAlterTableInfo *tSetAlterTableInfo(SStrToken *pTableName, SArray *pCols, SArray ...@@ -1060,10 +1060,10 @@ SAlterTableInfo *tSetAlterTableInfo(SStrToken *pTableName, SArray *pCols, SArray
void* destroyCreateTableSql(SCreateTableSql* pCreate) { void* destroyCreateTableSql(SCreateTableSql* pCreate) {
destroySqlNode(pCreate->pSelect); destroySqlNode(pCreate->pSelect);
taosArrayDestroy(pCreate->colInfo.pColumns); taosArrayDestroy(&pCreate->colInfo.pColumns);
taosArrayDestroy(pCreate->colInfo.pTagColumns); taosArrayDestroy(&pCreate->colInfo.pTagColumns);
taosArrayDestroyEx(pCreate->childTableInfo, freeCreateTableInfo); taosArrayDestroyEx(&pCreate->childTableInfo, freeCreateTableInfo);
tfree(pCreate); tfree(pCreate);
return NULL; return NULL;
...@@ -1071,24 +1071,24 @@ void* destroyCreateTableSql(SCreateTableSql* pCreate) { ...@@ -1071,24 +1071,24 @@ void* destroyCreateTableSql(SCreateTableSql* pCreate) {
void SqlInfoDestroy(SSqlInfo *pInfo) { void SqlInfoDestroy(SSqlInfo *pInfo) {
if (pInfo == NULL) return;; if (pInfo == NULL) return;;
taosArrayDestroy(pInfo->funcs); taosArrayDestroy(&pInfo->funcs);
if (pInfo->type == TSDB_SQL_SELECT) { if (pInfo->type == TSDB_SQL_SELECT) {
destroyAllSqlNode(pInfo->list); destroyAllSqlNode(pInfo->list);
} else if (pInfo->type == TSDB_SQL_CREATE_TABLE) { } else if (pInfo->type == TSDB_SQL_CREATE_TABLE) {
pInfo->pCreateTableInfo = destroyCreateTableSql(pInfo->pCreateTableInfo); pInfo->pCreateTableInfo = destroyCreateTableSql(pInfo->pCreateTableInfo);
} else if (pInfo->type == TSDB_SQL_ALTER_TABLE) { } else if (pInfo->type == TSDB_SQL_ALTER_TABLE) {
taosArrayDestroyEx(pInfo->pAlterInfo->varList, freeVariant); taosArrayDestroyEx(&pInfo->pAlterInfo->varList, freeVariant);
taosArrayDestroy(pInfo->pAlterInfo->pAddColumns); taosArrayDestroy(&pInfo->pAlterInfo->pAddColumns);
tfree(pInfo->pAlterInfo); tfree(pInfo->pAlterInfo);
} else if (pInfo->type == TSDB_SQL_COMPACT_VNODE) { } else if (pInfo->type == TSDB_SQL_COMPACT_VNODE) {
tSqlExprListDestroy(pInfo->list); tSqlExprListDestroy(pInfo->list);
} else { } else {
if (pInfo->pMiscInfo != NULL) { if (pInfo->pMiscInfo != NULL) {
taosArrayDestroy(pInfo->pMiscInfo->a); taosArrayDestroy(&pInfo->pMiscInfo->a);
} }
if (pInfo->pMiscInfo != NULL && (pInfo->type == TSDB_SQL_CREATE_DB || pInfo->type == TSDB_SQL_ALTER_DB)) { if (pInfo->pMiscInfo != NULL && (pInfo->type == TSDB_SQL_CREATE_DB || pInfo->type == TSDB_SQL_ALTER_DB)) {
taosArrayDestroyEx(pInfo->pMiscInfo->dbOpt.keep, freeVariant); taosArrayDestroyEx(&pInfo->pMiscInfo->dbOpt.keep, freeVariant);
} }
tfree(pInfo->pMiscInfo); tfree(pInfo->pMiscInfo);
......
...@@ -316,8 +316,8 @@ static int tsdbCompactMeta(STsdbRepo *pRepo) { ...@@ -316,8 +316,8 @@ static int tsdbCompactMeta(STsdbRepo *pRepo) {
static void tsdbDestroyCompactH(SCompactH *pComph) { static void tsdbDestroyCompactH(SCompactH *pComph) {
pComph->pDataCols = tdFreeDataCols(pComph->pDataCols); pComph->pDataCols = tdFreeDataCols(pComph->pDataCols);
pComph->aSupBlk = taosArrayDestroy(pComph->aSupBlk); pComph->aSupBlk = taosArrayDestroy(&pComph->aSupBlk);
pComph->aBlkIdx = taosArrayDestroy(pComph->aBlkIdx); pComph->aBlkIdx = taosArrayDestroy(&pComph->aBlkIdx);
tsdbDestroyCompTbArray(pComph); tsdbDestroyCompTbArray(pComph);
tsdbDestroyReadH(&(pComph->readh)); tsdbDestroyReadH(&(pComph->readh));
tsdbCloseDFileSet(TSDB_COMPACT_WSET(pComph)); tsdbCloseDFileSet(TSDB_COMPACT_WSET(pComph));
...@@ -370,7 +370,7 @@ static int tsdbCompactMeta(STsdbRepo *pRepo) { ...@@ -370,7 +370,7 @@ static int tsdbCompactMeta(STsdbRepo *pRepo) {
tfree(pTh->pInfo); tfree(pTh->pInfo);
} }
pComph->tbArray = taosArrayDestroy(pComph->tbArray); pComph->tbArray = taosArrayDestroy(&pComph->tbArray);
} }
static int tsdbCacheFSetIndex(SCompactH *pComph) { static int tsdbCacheFSetIndex(SCompactH *pComph) {
......
...@@ -1216,7 +1216,7 @@ static int tsdbRemoveTableFromIndex(STsdbMeta *pMeta, STable *pTable) { ...@@ -1216,7 +1216,7 @@ static int tsdbRemoveTableFromIndex(STsdbMeta *pMeta, STable *pTable) {
} }
} }
taosArrayDestroy(res); taosArrayDestroy(&res);
} }
return 0; return 0;
} }
...@@ -1680,7 +1680,7 @@ static void tsdbFreeTableSchema(STable *pTable) { ...@@ -1680,7 +1680,7 @@ static void tsdbFreeTableSchema(STable *pTable) {
tdFreeSchema(pSchema); tdFreeSchema(pSchema);
} }
taosArrayDestroy(pTable->schema); taosArrayDestroy(&pTable->schema);
} }
} }
...@@ -3651,7 +3651,7 @@ SArray* createTableGroup(SArray* pTableList, STSchema* pTagSchema, SColIndex* pC ...@@ -3651,7 +3651,7 @@ SArray* createTableGroup(SArray* pTableList, STSchema* pTagSchema, SColIndex* pC
if (numOfOrderCols == 0 || size == 1) { // no group by tags clause or only one table if (numOfOrderCols == 0 || size == 1) { // no group by tags clause or only one table
SArray* sa = taosArrayInit(size, sizeof(STableKeyInfo)); SArray* sa = taosArrayInit(size, sizeof(STableKeyInfo));
if (sa == NULL) { if (sa == NULL) {
taosArrayDestroy(pTableGroup); taosArrayDestroy(&pTableGroup);
return NULL; return NULL;
} }
...@@ -3719,7 +3719,7 @@ int32_t tsdbQuerySTableByTagCond(STsdbRepo* tsdb, uint64_t uid, TSKEY skey, cons ...@@ -3719,7 +3719,7 @@ int32_t tsdbQuerySTableByTagCond(STsdbRepo* tsdb, uint64_t uid, TSKEY skey, cons
tsdbDebug("%p no table name/tag condition, all tables qualified, numOfTables:%u, group:%zu", tsdb, tsdbDebug("%p no table name/tag condition, all tables qualified, numOfTables:%u, group:%zu", tsdb,
pGroupInfo->numOfTables, taosArrayGetSize(pGroupInfo->pGroupList)); pGroupInfo->numOfTables, taosArrayGetSize(pGroupInfo->pGroupList));
taosArrayDestroy(res); taosArrayDestroy(&res);
if (tsdbUnlockRepoMeta(tsdb) < 0) goto _error; if (tsdbUnlockRepoMeta(tsdb) < 0) goto _error;
return ret; return ret;
} }
...@@ -3768,14 +3768,14 @@ int32_t tsdbQuerySTableByTagCond(STsdbRepo* tsdb, uint64_t uid, TSKEY skey, cons ...@@ -3768,14 +3768,14 @@ int32_t tsdbQuerySTableByTagCond(STsdbRepo* tsdb, uint64_t uid, TSKEY skey, cons
tsdbDebug("%p stable tid:%d, uid:%"PRIu64" query, numOfTables:%u, belong to %" PRIzu " groups", tsdb, pTable->tableId.tid, tsdbDebug("%p stable tid:%d, uid:%"PRIu64" query, numOfTables:%u, belong to %" PRIzu " groups", tsdb, pTable->tableId.tid,
pTable->tableId.uid, pGroupInfo->numOfTables, taosArrayGetSize(pGroupInfo->pGroupList)); pTable->tableId.uid, pGroupInfo->numOfTables, taosArrayGetSize(pGroupInfo->pGroupList));
taosArrayDestroy(res); taosArrayDestroy(&res);
if (tsdbUnlockRepoMeta(tsdb) < 0) goto _error; if (tsdbUnlockRepoMeta(tsdb) < 0) goto _error;
return ret; return ret;
_error: _error:
taosArrayDestroy(res); taosArrayDestroy(&res);
return terrno; return terrno;
} }
...@@ -3831,7 +3831,7 @@ int32_t tsdbGetTableGroupFromIdList(STsdbRepo* tsdb, SArray* pTableIdList, STabl ...@@ -3831,7 +3831,7 @@ int32_t tsdbGetTableGroupFromIdList(STsdbRepo* tsdb, SArray* pTableIdList, STabl
tsdbError("direct query on super tale is not allowed, table uid:%"PRIu64", tid:%d", id->uid, id->tid); tsdbError("direct query on super tale is not allowed, table uid:%"PRIu64", tid:%d", id->uid, id->tid);
terrno = TSDB_CODE_QRY_INVALID_MSG; terrno = TSDB_CODE_QRY_INVALID_MSG;
tsdbUnlockRepoMeta(tsdb); tsdbUnlockRepoMeta(tsdb);
taosArrayDestroy(group); taosArrayDestroy(&group);
return terrno; return terrno;
} }
...@@ -3842,7 +3842,7 @@ int32_t tsdbGetTableGroupFromIdList(STsdbRepo* tsdb, SArray* pTableIdList, STabl ...@@ -3842,7 +3842,7 @@ int32_t tsdbGetTableGroupFromIdList(STsdbRepo* tsdb, SArray* pTableIdList, STabl
} }
if (tsdbUnlockRepoMeta(tsdb) < 0) { if (tsdbUnlockRepoMeta(tsdb) < 0) {
taosArrayDestroy(group); taosArrayDestroy(&group);
return terrno; return terrno;
} }
...@@ -3850,7 +3850,7 @@ int32_t tsdbGetTableGroupFromIdList(STsdbRepo* tsdb, SArray* pTableIdList, STabl ...@@ -3850,7 +3850,7 @@ int32_t tsdbGetTableGroupFromIdList(STsdbRepo* tsdb, SArray* pTableIdList, STabl
if (pGroupInfo->numOfTables > 0) { if (pGroupInfo->numOfTables > 0) {
taosArrayPush(pGroupInfo->pGroupList, &group); taosArrayPush(pGroupInfo->pGroupList, &group);
} else { } else {
taosArrayDestroy(group); taosArrayDestroy(&group);
} }
return TSDB_CODE_SUCCESS; return TSDB_CODE_SUCCESS;
...@@ -3867,7 +3867,7 @@ static void* doFreeColumnInfoData(SArray* pColumnInfoData) { ...@@ -3867,7 +3867,7 @@ static void* doFreeColumnInfoData(SArray* pColumnInfoData) {
tfree(pColInfo->pData); tfree(pColInfo->pData);
} }
taosArrayDestroy(pColumnInfoData); taosArrayDestroy(&pColumnInfoData);
return NULL; return NULL;
} }
...@@ -3880,7 +3880,7 @@ static void* destroyTableCheckInfo(SArray* pTableCheckInfo) { ...@@ -3880,7 +3880,7 @@ static void* destroyTableCheckInfo(SArray* pTableCheckInfo) {
tfree(p->pCompInfo); tfree(p->pCompInfo);
} }
taosArrayDestroy(pTableCheckInfo); taosArrayDestroy(&pTableCheckInfo);
return NULL; return NULL;
} }
...@@ -3892,7 +3892,7 @@ void tsdbCleanupQueryHandle(TsdbQueryHandleT queryHandle) { ...@@ -3892,7 +3892,7 @@ void tsdbCleanupQueryHandle(TsdbQueryHandleT queryHandle) {
pQueryHandle->pColumns = doFreeColumnInfoData(pQueryHandle->pColumns); pQueryHandle->pColumns = doFreeColumnInfoData(pQueryHandle->pColumns);
taosArrayDestroy(pQueryHandle->defaultLoadColumn); taosArrayDestroy(&pQueryHandle->defaultLoadColumn);
tfree(pQueryHandle->pDataBlockInfo); tfree(pQueryHandle->pDataBlockInfo);
tfree(pQueryHandle->statis); tfree(pQueryHandle->statis);
...@@ -3939,11 +3939,11 @@ void tsdbDestroyTableGroup(STableGroupInfo *pGroupList) { ...@@ -3939,11 +3939,11 @@ void tsdbDestroyTableGroup(STableGroupInfo *pGroupList) {
//assert(pTable != NULL); //assert(pTable != NULL);
} }
taosArrayDestroy(p); taosArrayDestroy(&p);
} }
taosHashCleanup(pGroupList->map); taosHashCleanup(pGroupList->map);
taosArrayDestroy(pGroupList->pGroupList); taosArrayDestroy(&pGroupList->pGroupList);
pGroupList->numOfTables = 0; pGroupList->numOfTables = 0;
} }
...@@ -4123,7 +4123,7 @@ static int32_t queryByJsonTag(STable* pTable, void* filterInfo, SArray* res){ ...@@ -4123,7 +4123,7 @@ static int32_t queryByJsonTag(STable* pTable, void* filterInfo, SArray* res){
} }
} }
tfree(addToResult); tfree(addToResult);
taosArrayDestroy(tabList); taosArrayDestroy(&tabList);
return TSDB_CODE_SUCCESS; return TSDB_CODE_SUCCESS;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册