From 47222b650cacc0d589c3508d8af330649af362dd Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Mon, 26 Apr 2021 18:52:23 +0800 Subject: [PATCH] [td-225]fix memory leak. --- src/query/src/queryMain.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/query/src/queryMain.c b/src/query/src/queryMain.c index c8884e1afa..f00d5ceb41 100644 --- a/src/query/src/queryMain.c +++ b/src/query/src/queryMain.c @@ -55,10 +55,13 @@ void freeParam(SQueryParam *param) { tfree(param->tagCond); tfree(param->tbnameCond); tfree(param->pTableIdList); -// tfree(param->pExprMsg); -// tfree(param->pSecExprMsg); + taosArrayDestroy(param->pOperator); tfree(param->pExprs); tfree(param->pSecExprs); + + tfree(param->pExpr); + tfree(param->pSecExpr); + tfree(param->pGroupColIndex); tfree(param->pTagColumnInfo); tfree(param->pGroupbyExpr); -- GitLab