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

Ivan Gerasimov ivan.gerasimov at oracle.com
Wed Jul 18 00:01:43 UTC 2018


Hello!

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/

Thanks in advance!

-- 
With kind regards,
Ivan Gerasimov



More information about the core-libs-dev mailing list