On Fri, 27 Nov 2026 10:19:32 GMT, Matthias Baesken <[email protected]> wrote:

> I checked again and calling LocalFree with argument NULL should be okay 
> https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-localfree
> 
> So we initialize the buf pointers correctly to NULL before going into the 
> FormatMessage function, means we can continue calling LocalFree as it is now. 
> Guess I can close the PR in this case.

Wait a second, while LocalFree with argument NULL is harmless,  
JNU_NewStringPlatform could be problematic.
So we should still better check.

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

PR Comment: https://git.openjdk.org/jdk/pull/34067#issuecomment-7216205756

Reply via email to