JDK-8207750 : Native handle leak in java.io.WinNTFileSystem.list()
Type:Bug
Component:core-libs
Sub-Component:java.io
Priority:P4
Status:Closed
Resolution:Fixed
OS:windows
Submitted:2018-07-17
Updated:2019-03-19
Resolved:2018-07-18
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
File: src/java.base/windows/native/libjava/WinNTFileSystem_md.c
In function Java_java_io_WinNTFileSystem_list if memory allocation fails, the native handle obtained via FindFirstFileW() may not be released.