RFR 8207750 : Native handle leak in java.io.WinNTFileSystem.list()

Ivan Gerasimov ivan.gerasimov at oracle.com
Wed Jul 18 00:19:04 UTC 2018


Thank you Brian for review!


On 7/17/18 5:08 PM, Brian Burkhalter wrote:
> Hi Ivan,
>
> This looks all right to me.
>
> Thanks,
>
> Brian
>
> On Jul 17, 2018, at 5:01 PM, Ivan Gerasimov <ivan.gerasimov at oracle.com 
> <mailto:ivan.gerasimov at oracle.com>> wrote:
>
>> In the file WinNTFileSystem_md.c there is a potential leak of native 
>> handle obtained from FindFirstFileW() in the unfortunate event of 
>> memory allocation failure.
>>
>> Would you please help review a simple fix?
>>
>> BUGURL:https://bugs.openjdk.java.net/browse/JDK-8207750
>> WEBREV:http://cr.openjdk.java.net/~igerasim/8207750/00/webrev/ 
>> <http://cr.openjdk.java.net/%7Eigerasim/8207750/00/webrev/>
>

-- 
With kind regards,
Ivan Gerasimov



More information about the core-libs-dev mailing list