On Wed, 7 Oct 2026 14:06:09 GMT, Matthias Baesken <[email protected]> wrote:
>> src/java.base/windows/native/libnet/DefaultProxySelector.c line 68:
>>
>>> 66:
>>> 67: if (!initJavaClass(env)) {
>>> 68: WinHttpCloseHandle(session);
>>
>> Should `session` be returned to `NULL` after freeing it here?
>
> You mean, session should be set to NULL?
That's what I mean. Otherwise it will point to some already freed memory?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/33231#discussion_r4208619095