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

Hotfix/sangshuduo/td 3801 taosdump coverity scan issue (#6828)

* [TD-3801]<fix>: taosdump coverity scan issue.

* merge from commit: 069169e7 and fix coverity scan issue.

* fix converity issues
Co-authored-by: NShuduo Sang <sdsang@taosdata.com>
上级 373f1ed4
...@@ -1596,6 +1596,7 @@ static void taosStartDumpOutWorkThreads(int32_t numOfThread, char *dbName) ...@@ -1596,6 +1596,7 @@ static void taosStartDumpOutWorkThreads(int32_t numOfThread, char *dbName)
NULL, g_args.port); NULL, g_args.port);
if (pThread->taosCon == NULL) { if (pThread->taosCon == NULL) {
errorPrint("Failed to connect to TDengine server %s\n", g_args.host); errorPrint("Failed to connect to TDengine server %s\n", g_args.host);
free(threadObj);
return; return;
} }
pthread_attr_init(&thattr); pthread_attr_init(&thattr);
...@@ -2607,6 +2608,7 @@ static void taosStartDumpInWorkThreads() ...@@ -2607,6 +2608,7 @@ static void taosStartDumpInWorkThreads()
NULL, g_args.port); NULL, g_args.port);
if (pThread->taosCon == NULL) { if (pThread->taosCon == NULL) {
errorPrint("Failed to connect to TDengine server %s\n", g_args.host); errorPrint("Failed to connect to TDengine server %s\n", g_args.host);
free(threadObj);
return; return;
} }
pthread_attr_init(&thattr); pthread_attr_init(&thattr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册