diff --git a/src/client/src/tscSql.c b/src/client/src/tscSql.c index 106f62fb74..fa7c1f83ba 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));