[OpenJDK 2D-Dev] RFR: 8230480: check malloc/calloc results in java.desktop

Baesken, Matthias matthias.baesken at sap.com
Tue Sep 3 15:40:24 UTC 2019

Hello,  please review this small change .

I noticed that  at a few places  in java.desktop  checking  malloc/calloc   return  values  is not done.
This should be changed .

Additionally  I  think we miss here a free in an early return, changed it too :


567     if (depth > 12) {
568         free (awt_data->awtImage);
569         return 1;
570     }

Build/webrev :



Thanks, Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/2d-dev/attachments/20190903/ce849040/attachment.html>

More information about the 2d-dev mailing list