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) {