提交 e22afede 编写于 作者: B Benguang Zhao

fix: resolve memory leak on select interp... where range...

上级 f7fcd05a
......@@ -97,9 +97,11 @@ typedef struct SIntervalVal {
SStrToken offset;
} SIntervalVal;
typedef struct tSqlExpr tSqlExprTimestamp;
typedef struct SRangeVal {
void *start;
void *end;
tSqlExprTimestamp *start;
tSqlExprTimestamp *end;
} SRangeVal;
typedef struct SSessionWindowVal {
......
......@@ -1183,6 +1183,10 @@ void destroySqlNode(SSqlNode *pSqlNode) {
pSqlNode->fillType = NULL;
tSqlExprDestroy(pSqlNode->pHaving);
tSqlExprDestroy(pSqlNode->pRange.start);
tSqlExprDestroy(pSqlNode->pRange.end);
free(pSqlNode);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册