diff --git a/src/common/src/texpr.c b/src/common/src/texpr.c index 10e93d0edcffe772fe83f2de938fd4248aea57e6..b4edc2f382c09ac2cd29afc46b0bd560953153e3 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) {