On Thu, 18 Aug 2022 12:42:48 GMT, Matthias Baesken <mbaes...@openjdk.org> wrote:

> Another MultiByteToWideChar / malloc case I just saw
> https://github.com/openjdk/jdk/blob/master/src/java.instrument/windows/native/libinstrument/EncodingSupport_md.c#L79
> shouldn't there be the free call after line 80 ?

I think you are right, it won't free if MultiByteToWideChar were to fail.

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

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

Reply via email to