未验证 提交 f5d9a1cf 编写于 作者: sangshuduo's avatar sangshuduo 提交者: GitHub

Hotfix/sangshuduo/td 3801 taosdump coverity scan issue for develop (#8321)

* fix converity scan issue.

* fix converity issues

* fix converity scan issue.

* fix coverity scaned memory leak.

* fix coverity scan issues.
Co-authored-by: NShuduo Sang <sdsang@taosdata.com>
上级 18c84e58
......@@ -638,11 +638,6 @@ static int queryDbImpl(TAOS *taos, char *command) {
TAOS_RES *res = NULL;
int32_t code = -1;
if (NULL != res) {
taos_free_result(res);
res = NULL;
}
res = taos_query(taos, command);
code = taos_errno(res);
......@@ -1193,6 +1188,7 @@ static int64_t dumpNormalTable(
jsonAvroSchema);
}
tfree(jsonAvroSchema);
freeTbDes(tableDes);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册