<AWT Dev> Review request for 8146317: Memory leak in wcstombsdmp

Ambarish Rapte ambarish.rapte at oracle.com
Wed Jan 6 13:06:09 UTC 2016


Hi ,

                Please review the fix for JDK9,

                Bug: https://bugs.openjdk.java.net/browse/JDK-8146317

Webrev: http://cr.openjdk.java.net/~arapte/8146317/webrev.00/

 

 

Issue:    Possible memory leak with an error case in function wcstombsdmp().

 

Cause:  In error case,

Function wcstombsdmp() returns NULL, without freeing memory allocated using malloc.

 

Fix:         Call   free() before returning NULL.

 

 

Thanks,

Ambarish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20160106/953d856b/attachment.html>


More information about the awt-dev mailing list