RFR: 8286159: Memory leak in getAllConfigs of awt_GraphicsEnv.c:585

Phil Race prr at openjdk.java.net
Mon May 23 20:44:28 UTC 2022


If we don't store the memory allocated for graphicsConfigs because we failed/bail, we need to free it.

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

Commit messages:
 - 8286159

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

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



More information about the client-libs-dev mailing list