Merge pull request #5004 from taosdata/hotfix/fix_calloc_failed
fix bug when calloc failed
This commit is contained in:
commit
3401452f36
|
@ -110,6 +110,7 @@ static SSqlObj *taosConnectImpl(const char *ip, const char *user, const char *pa
|
||||||
rpcClose(pDnodeConn);
|
rpcClose(pDnodeConn);
|
||||||
free(pObj->tscCorMgmtEpSet);
|
free(pObj->tscCorMgmtEpSet);
|
||||||
free(pObj);
|
free(pObj);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
memcpy(pObj->tscCorMgmtEpSet, &corMgmtEpSet, sizeof(SRpcCorEpSet));
|
memcpy(pObj->tscCorMgmtEpSet, &corMgmtEpSet, sizeof(SRpcCorEpSet));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue