提交 ff9971ff 编写于 作者: M markswang

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

上级 f4efe18a
...@@ -860,10 +860,10 @@ static int32_t tscProcessServStatus(SSqlObj *pSql) { ...@@ -860,10 +860,10 @@ static int32_t tscProcessServStatus(SSqlObj *pSql) {
if (pHb != NULL) { if (pHb != NULL) {
pSql->res.code = checkForOnlineNode(pHb); pSql->res.code = checkForOnlineNode(pHb);
taosReleaseRef(tscObjRef, pObj->hbrid);
} }
if (pSql->res.code == TSDB_CODE_RPC_NETWORK_UNAVAIL) { if (pSql->res.code == TSDB_CODE_RPC_NETWORK_UNAVAIL) {
taosReleaseRef(tscObjRef, pObj->hbrid);
return pSql->res.code; return pSql->res.code;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册