We potentially leak a handle in case of failing malloc. Additionally, GetFinalPathNameByHandleW can fail and return 0. Then we should free a newly allocated buffer.
--------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - JDK-8396678 Changes: https://git.openjdk.org/jdk/pull/33752/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33752&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8396678 Stats: 7 lines in 1 file changed: 6 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/33752.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/33752/head:pull/33752 PR: https://git.openjdk.org/jdk/pull/33752
