未验证 提交 ebea4966 编写于 作者: M Minglei Jin 提交者: GitHub

Merge pull request #14872 from taosdata/fix/TS-1640-2.6

fix: resolve memory leak on select interp... where range...
......@@ -7,7 +7,6 @@ LFLAGS = '-Wl,-rpath,/usr/local/taos/driver/' -ltaos -lpthread -lm -lrt
CFLAGS = -O3 -g -Wall -Wno-deprecated -fPIC -Wno-unused-result -Wconversion \
-Wno-char-subscripts -D_REENTRANT -Wno-format -D_REENTRANT -DLINUX \
-Wno-unused-function -D_M_X64 -I/usr/local/taos/include -std=gnu99 \
-I../../../deps/cJson/inc \
-Wno-unused-function -D_M_X64 -I/usr/local/taos/include -std=gnu99 \
-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow -fno-sanitize=null -fno-sanitize=alignment
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册