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

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Wed Jan 13 13:52:39 UTC 2016


Hi, Ambarish.
I suppose that the fix was come from the Alex Henrie and those version 
should be reviewed.
http://mail.openjdk.java.net/pipermail/awt-dev/2015-November/010366.html

Then someone should push it using appropriate Contribute-By

On 06/01/16 16:06, Ambarish Rapte wrote:
> 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
>


-- 
Best regards, Sergey.


More information about the awt-dev mailing list