[TD-5534]<fix>:fix the coverity high risk of client

This commit is contained in:
markswang 2021-07-27 17:43:03 +08:00
parent f4efe18aa3
commit ff9971ffa2
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}