提交 d18be228 编写于 作者: C chegar

6987461: Handle leak when enabling java.net.useSystemProxies

Summary: Release the registry key handle if ProxyEnable is 0
Reviewed-by: michaelm
上级 d9b97433
...@@ -250,6 +250,10 @@ Java_sun_net_spi_DefaultProxySelector_getSystemProxy(JNIEnv *env, ...@@ -250,6 +250,10 @@ Java_sun_net_spi_DefaultProxySelector_getSystemProxy(JNIEnv *env,
return proxy; return proxy;
} }
} }
} else {
/* ProxyEnable == 0 or Query failed */
/* close the handle to the registry key */
RegCloseKey(hKey);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册