On Fri, 19 Mar 2021 20:36:57 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:

> If `JNU_NewStringPlatform` fails to allocate new Java String object for 
> printer name, `std::bad_alloc` is thrown. The handler for the exception does 
> not release the local reference to the `nameArray`, thus it will be leaked.

This is fine but there's not really a leak since when the caller returns to 
Java localrefs are released anyway.

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

Marked as reviewed by prr (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/3096

Reply via email to