[TD-5534]<fix>:fix the coverity high risk of client
This commit is contained in:
parent
f4efe18aa3
commit
ff9971ffa2
|
@ -860,10 +860,10 @@ static int32_t tscProcessServStatus(SSqlObj *pSql) {
|
|||
|
||||
if (pHb != NULL) {
|
||||
pSql->res.code = checkForOnlineNode(pHb);
|
||||
taosReleaseRef(tscObjRef, pObj->hbrid);
|
||||
}
|
||||
|
||||
if (pSql->res.code == TSDB_CODE_RPC_NETWORK_UNAVAIL) {
|
||||
taosReleaseRef(tscObjRef, pObj->hbrid);
|
||||
return pSql->res.code;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue