Hotfix/sangshuduo/td 3801 taosdump coverity scan issue for develop (#6827)
* fix converity scan issue. * fix converity issues Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
This commit is contained in:
parent
8cd41b4c98
commit
e5917825b5
|
@ -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()
|
||||||
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);
|
||||||
|
|
Loading…
Reference in New Issue