[TD-225]fix memory leak. #4914

This commit is contained in:
Haojun Liao 2021-01-23 14:50:01 +08:00
parent 7ee01d6d5e
commit f56eb0d446
1 changed files with 3 additions and 2 deletions

View File

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