fix coverity issue
This commit is contained in:
parent
c011e7b5c0
commit
03a964e713
|
@ -5902,7 +5902,7 @@ int32_t qCreateQueryInfo(void *tsdb, int32_t vgId, SQueryTableMsg *pQueryMsg, qi
|
||||||
|
|
||||||
SExprInfo *pExprs = NULL;
|
SExprInfo *pExprs = NULL;
|
||||||
if ((code = createQFunctionExprFromMsg(pQueryMsg, &pExprs, pExprMsg, pTagColumnInfo)) != TSDB_CODE_SUCCESS) {
|
if ((code = createQFunctionExprFromMsg(pQueryMsg, &pExprs, pExprMsg, pTagColumnInfo)) != TSDB_CODE_SUCCESS) {
|
||||||
tfree(pExprMsg);
|
free(pExprMsg);
|
||||||
goto _over;
|
goto _over;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5965,15 +5965,15 @@ int32_t qCreateQueryInfo(void *tsdb, int32_t vgId, SQueryTableMsg *pQueryMsg, qi
|
||||||
code = initQInfo(pQueryMsg, tsdb, vgId, *pQInfo, isSTableQuery);
|
code = initQInfo(pQueryMsg, tsdb, vgId, *pQInfo, isSTableQuery);
|
||||||
|
|
||||||
_over:
|
_over:
|
||||||
tfree(tagCond);
|
free(tagCond);
|
||||||
tfree(tbnameCond);
|
free(tbnameCond);
|
||||||
tfree(pGroupColIndex);
|
free(pGroupColIndex);
|
||||||
if (pGroupbyExpr != NULL) {
|
if (pGroupbyExpr != NULL) {
|
||||||
taosArrayDestroy(pGroupbyExpr->columnInfo);
|
taosArrayDestroy(pGroupbyExpr->columnInfo);
|
||||||
tfree(pGroupbyExpr);
|
free(pGroupbyExpr);
|
||||||
}
|
}
|
||||||
tfree(pTagColumnInfo);
|
free(pTagColumnInfo);
|
||||||
tfree(pExprs);
|
free(pExprs);
|
||||||
taosArrayDestroy(pTableIdList);
|
taosArrayDestroy(pTableIdList);
|
||||||
|
|
||||||
//pQInfo already freed in initQInfo, but *pQInfo may not pointer to null;
|
//pQInfo already freed in initQInfo, but *pQInfo may not pointer to null;
|
||||||
|
|
Loading…
Reference in New Issue