Hotfix/sangshuduo/td 3801 taosdump coverity scan issue (#6828)
* [TD-3801]<fix>: taosdump coverity scan issue.
* merge from commit: 069169e7c1
and fix coverity scan issue.
* fix converity issues
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
This commit is contained in:
parent
373f1ed483
commit
ba76e69895
|
@ -1596,6 +1596,7 @@ static void taosStartDumpOutWorkThreads(int32_t numOfThread, char *dbName)
|
|||
NULL, g_args.port);
|
||||
if (pThread->taosCon == NULL) {
|
||||
errorPrint("Failed to connect to TDengine server %s\n", g_args.host);
|
||||
free(threadObj);
|
||||
return;
|
||||
}
|
||||
pthread_attr_init(&thattr);
|
||||
|
@ -2607,6 +2608,7 @@ static void taosStartDumpInWorkThreads()
|
|||
NULL, g_args.port);
|
||||
if (pThread->taosCon == NULL) {
|
||||
errorPrint("Failed to connect to TDengine server %s\n", g_args.host);
|
||||
free(threadObj);
|
||||
return;
|
||||
}
|
||||
pthread_attr_init(&thattr);
|
||||
|
|
Loading…
Reference in New Issue