On Tue, 6 Oct 2026 14:43:20 GMT, Matthias Baesken <[email protected]> wrote:

> DefaultProxySelector.c creates a handle 'session' in the initialization 
> process, but misses to close it in case the initialization process fails.
> 
> In case of a successful initialization process, we seem to keep the handle 
> too and do not close it but this might be okay (?) .
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 952037af
Author:    Matthias Baesken <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/952037afbf540c30a77f0ad284f98e7f368d8c9c
Stats:     3 lines in 1 file changed: 2 ins; 0 del; 1 mod

8393678: [windows] DefaultProxySelector.c leaks handle 'session' if 
initJavaClass fails

Reviewed-by: dfuchs

-------------

PR: https://git.openjdk.org/jdk/pull/33231

Reply via email to