<i18n dev> RFR: 8282887: Potential memory leak in sun.util.locale.provider.HostLocalProviderAdapterImpl.getNumberPattern() on Windows

Zhengyu Gu zgu at openjdk.java.net
Thu Mar 10 18:47:04 UTC 2022


Please review this small patch that fixes early `CHECK_NULL_RETURN` results not releasing native `jchar` array returned by `GetStringChars()`.

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

Commit messages:
 - 8282887: Potential memory leak in sun.util.locale.provider.HostLocaleProviderAdapterImpl.getNumberPattern() on Windows

Changes: https://git.openjdk.java.net/jdk/pull/7777/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7777&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8282887
  Stats: 9 lines in 1 file changed: 2 ins; 3 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7777.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7777/head:pull/7777

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


More information about the i18n-dev mailing list