fix bug when calloc failed
This commit is contained in:
parent
be1525677e
commit
1c16f49682
|
@ -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