fix bug when calloc failed

This commit is contained in:
yihaoDeng 2021-01-19 10:27:14 +00:00
parent be1525677e
commit 1c16f49682
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ static SSqlObj *taosConnectImpl(const char *ip, const char *user, const char *pa
rpcClose(pDnodeConn);
free(pObj->tscCorMgmtEpSet);
free(pObj);
return NULL;
}
memcpy(pObj->tscCorMgmtEpSet, &corMgmtEpSet, sizeof(SRpcCorEpSet));