From 03a964e713545414ee3fecdc442bcb3837768d93 Mon Sep 17 00:00:00 2001 From: dengyihao Date: Mon, 22 Jun 2020 12:12:08 +0800 Subject: [PATCH] fix coverity issue --- src/query/src/qExecutor.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index 597bfcbf07..69a8be0959 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -5902,7 +5902,7 @@ int32_t qCreateQueryInfo(void *tsdb, int32_t vgId, SQueryTableMsg *pQueryMsg, qi SExprInfo *pExprs = NULL; if ((code = createQFunctionExprFromMsg(pQueryMsg, &pExprs, pExprMsg, pTagColumnInfo)) != TSDB_CODE_SUCCESS) { - tfree(pExprMsg); + free(pExprMsg); goto _over; } @@ -5965,15 +5965,15 @@ int32_t qCreateQueryInfo(void *tsdb, int32_t vgId, SQueryTableMsg *pQueryMsg, qi code = initQInfo(pQueryMsg, tsdb, vgId, *pQInfo, isSTableQuery); _over: - tfree(tagCond); - tfree(tbnameCond); - tfree(pGroupColIndex); + free(tagCond); + free(tbnameCond); + free(pGroupColIndex); if (pGroupbyExpr != NULL) { taosArrayDestroy(pGroupbyExpr->columnInfo); - tfree(pGroupbyExpr); + free(pGroupbyExpr); } - tfree(pTagColumnInfo); - tfree(pExprs); + free(pTagColumnInfo); + free(pExprs); taosArrayDestroy(pTableIdList); //pQInfo already freed in initQInfo, but *pQInfo may not pointer to null; -- GitLab