提交 7c543f43 编写于 作者: S Shuduo Sang

fix converity issues

上级 c5d31492
...@@ -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.
先完成此消息的编辑!
想要评论请 注册