From f56eb0d446d20f39db5b67b9676e9b982c78a6ef Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Sat, 23 Jan 2021 14:50:01 +0800 Subject: [PATCH] [TD-225]fix memory leak. #4914 --- src/common/src/texpr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/src/texpr.c b/src/common/src/texpr.c index 10e93d0edc..b4edc2f382 100644 --- a/src/common/src/texpr.c +++ b/src/common/src/texpr.c @@ -269,8 +269,9 @@ void arithmeticTreeTraverse(tExprNode *pExprs, int32_t numOfRows, char *pOutput, } } - free(pLeftOutput); - free(pRightOutput); + tfree(pdata); + tfree(pLeftOutput); + tfree(pRightOutput); } static void exprTreeToBinaryImpl(SBufferWriter* bw, tExprNode* expr) { -- GitLab