JDK-8207145 : (fs) Native memory leak in WindowsNativeDispatcher.LookupPrivilegeValue0
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2018-07-11
  • Updated: 2019-03-19
  • Resolved: 2018-07-12
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.

To download the current JDK release, click here.
JDK 12 JDK 8
12 b03Fixed 8u202Fixed
Description
Function LookupPrivilegeValue0() allocates a struct LUID with LocalAlloc(), and this memory is never released:  Neither on successful path nor upon erroneous condition.
Comments
A long standing leak in a little used method. Please bring the patch to nio-dev to review.
12-07-2018