IconSwap.cpp ChangeIcon checks malloc - results for NULL but seems to check at one place the wrong variable. There is also a place in the coding where we currently miss a malloc - check after the call and should better add it.
--------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - JDK-8396879 Changes: https://git.openjdk.org/jdk/pull/33820/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33820&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8396879 Stats: 9 lines in 1 file changed: 7 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/33820.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/33820/head:pull/33820 PR: https://git.openjdk.org/jdk/pull/33820
