diff --git a/src/client/src/tscSql.c b/src/client/src/tscSql.c index 106f62fb74168322be7d1102cf4c45a4ef3ed3df..fa7c1f83bac34c54fefa210c2b3913bcc11db118 100644 --- a/src/client/src/tscSql.c +++ b/src/client/src/tscSql.c @@ -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));