Fixed three potential null pointer dereferences:
* Two in log messages.
* One during cleanup after a failed realloc, which also leaked the original 
allocation.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - 8392993: Null pointer dereferences in screencast code

Changes: https://git.openjdk.org/jdk/pull/33059/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33059&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8392993
  Stats: 7 lines in 2 files changed: 3 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/33059.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33059/head:pull/33059

PR: https://git.openjdk.org/jdk/pull/33059

Reply via email to