Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
7bc4a2ef
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
7bc4a2ef
编写于
4月 25, 2021
作者:
H
Haojun Liao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[td-225]fix memory leak
上级
4f6d3b56
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
7 addition
and
20 deletion
+7
-20
src/client/inc/tsclient.h
src/client/inc/tsclient.h
+0
-7
src/client/src/tscServer.c
src/client/src/tscServer.c
+1
-1
src/client/src/tscUtil.c
src/client/src/tscUtil.c
+0
-4
tests/script/general/parser/alter1.sim
tests/script/general/parser/alter1.sim
+5
-5
tests/script/general/parser/testSuite.sim
tests/script/general/parser/testSuite.sim
+0
-2
tests/script/test.sh
tests/script/test.sh
+1
-1
未找到文件。
src/client/inc/tsclient.h
浏览文件 @
7bc4a2ef
...
@@ -108,13 +108,6 @@ typedef struct SColumn {
...
@@ -108,13 +108,6 @@ typedef struct SColumn {
SColumnInfo
info
;
SColumnInfo
info
;
}
SColumn
;
}
SColumn
;
typedef
struct
SExprFilter
{
tSqlExpr
*
pExpr
;
//used for having parse
SExprInfo
*
pExprInfo
;
SArray
*
fp
;
SColumn
*
pFilters
;
//having filter info
}
SExprFilter
;
typedef
struct
SInternalField
{
typedef
struct
SInternalField
{
TAOS_FIELD
field
;
TAOS_FIELD
field
;
bool
visible
;
bool
visible
;
...
...
src/client/src/tscServer.c
浏览文件 @
7bc4a2ef
...
@@ -2272,7 +2272,7 @@ int tscProcessDropTableRsp(SSqlObj *pSql) {
...
@@ -2272,7 +2272,7 @@ int tscProcessDropTableRsp(SSqlObj *pSql) {
taosHashRemove
(
tscTableMetaInfo
,
name
,
strnlen
(
name
,
TSDB_TABLE_FNAME_LEN
));
taosHashRemove
(
tscTableMetaInfo
,
name
,
strnlen
(
name
,
TSDB_TABLE_FNAME_LEN
));
tscDebug
(
"%p remove table meta after drop table:%s, numOfRemain:%d"
,
pSql
,
name
,
(
int32_t
)
taosHashGetSize
(
tscTableMetaInfo
));
tscDebug
(
"%p remove table meta after drop table:%s, numOfRemain:%d"
,
pSql
,
name
,
(
int32_t
)
taosHashGetSize
(
tscTableMetaInfo
));
pTableMetaInfo
->
pTableMeta
=
NULL
;
tfree
(
pTableMetaInfo
->
pTableMeta
)
;
return
0
;
return
0
;
}
}
...
...
src/client/src/tscUtil.c
浏览文件 @
7bc4a2ef
...
@@ -2394,10 +2394,6 @@ void clearAllTableMetaInfo(SQueryInfo* pQueryInfo, bool removeMeta) {
...
@@ -2394,10 +2394,6 @@ void clearAllTableMetaInfo(SQueryInfo* pQueryInfo, bool removeMeta) {
for
(
int32_t
i
=
0
;
i
<
pQueryInfo
->
numOfTables
;
++
i
)
{
for
(
int32_t
i
=
0
;
i
<
pQueryInfo
->
numOfTables
;
++
i
)
{
STableMetaInfo
*
pTableMetaInfo
=
tscGetMetaInfo
(
pQueryInfo
,
i
);
STableMetaInfo
*
pTableMetaInfo
=
tscGetMetaInfo
(
pQueryInfo
,
i
);
if
(
pTableMetaInfo
->
pTableMeta
&&
pTableMetaInfo
->
pTableMeta
->
tableType
==
TSDB_TEMP_TABLE
)
{
tfree
(
pTableMetaInfo
->
pTableMeta
);
}
if
(
removeMeta
)
{
if
(
removeMeta
)
{
char
name
[
TSDB_TABLE_FNAME_LEN
]
=
{
0
};
char
name
[
TSDB_TABLE_FNAME_LEN
]
=
{
0
};
tNameExtractFullName
(
&
pTableMetaInfo
->
name
,
name
);
tNameExtractFullName
(
&
pTableMetaInfo
->
name
,
name
);
...
...
tests/script/general/parser/alter1.sim
浏览文件 @
7bc4a2ef
...
@@ -129,8 +129,8 @@ if $rows != 3 then
...
@@ -129,8 +129,8 @@ if $rows != 3 then
return -1
return -1
endi
endi
sql drop database $db
#
sql drop database $db
sql show databases
#
sql show databases
if $rows != 0 then
#if $rows != 0 then
return -1
#
return -1
endi
#
endi
tests/script/general/parser/testSuite.sim
浏览文件 @
7bc4a2ef
...
@@ -38,7 +38,6 @@ run general/parser/slimit.sim
...
@@ -38,7 +38,6 @@ run general/parser/slimit.sim
run general/parser/slimit1.sim
run general/parser/slimit1.sim
run general/parser/slimit_alter_tags.sim
run general/parser/slimit_alter_tags.sim
run general/parser/tbnameIn.sim
run general/parser/tbnameIn.sim
run general/parser/slimit_alter_tags.sim # persistent failed
run general/parser/join.sim
run general/parser/join.sim
run general/parser/join_multivnode.sim
run general/parser/join_multivnode.sim
run general/parser/join_manyblocks.sim
run general/parser/join_manyblocks.sim
...
@@ -54,7 +53,6 @@ run general/parser/timestamp.sim
...
@@ -54,7 +53,6 @@ run general/parser/timestamp.sim
run general/parser/sliding.sim
run general/parser/sliding.sim
run general/parser/function.sim
run general/parser/function.sim
run general/parser/stableOp.sim
run general/parser/stableOp.sim
run general/parser/slimit_alter_tags.sim
run general/parser/having.sim
run general/parser/having.sim
run general/parser/having_child.sim
run general/parser/having_child.sim
...
...
tests/script/test.sh
浏览文件 @
7bc4a2ef
...
@@ -131,7 +131,7 @@ if [ -n "$FILE_NAME" ]; then
...
@@ -131,7 +131,7 @@ if [ -n "$FILE_NAME" ]; then
valgrind
--tool
=
memcheck
--leak-check
=
full
--show-reachable
=
no
--track-origins
=
yes
--show-leak-kinds
=
all
-v
--workaround-gcc296-bugs
=
yes
--log-file
=
${
CODE_DIR
}
/../script/valgrind.log
$PROGRAM
-c
$CFG_DIR
-f
$FILE_NAME
valgrind
--tool
=
memcheck
--leak-check
=
full
--show-reachable
=
no
--track-origins
=
yes
--show-leak-kinds
=
all
-v
--workaround-gcc296-bugs
=
yes
--log-file
=
${
CODE_DIR
}
/../script/valgrind.log
$PROGRAM
-c
$CFG_DIR
-f
$FILE_NAME
else
else
echo
"ExcuteCmd:"
$PROGRAM
-c
$CFG_DIR
-f
$FILE_NAME
echo
"ExcuteCmd:"
$PROGRAM
-c
$CFG_DIR
-f
$FILE_NAME
$PROGRAM
-c
$CFG_DIR
-f
$FILE_NAME
valgrind
--tool
=
memcheck
--leak-check
=
full
--show-reachable
=
no
--track-origins
=
yes
--show-leak-kinds
=
all
-v
--workaround-gcc296-bugs
=
yes
--log-file
=
${
CODE_DIR
}
/../script/valgrind.log
$PROGRAM
-c
$CFG_DIR
-f
$FILE_NAME
fi
fi
else
else
echo
"ExcuteCmd:"
$PROGRAM
-c
$CFG_DIR
-f
basicSuite.sim
echo
"ExcuteCmd:"
$PROGRAM
-c
$CFG_DIR
-f
basicSuite.sim
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录