- 
    Bug 
- 
    Resolution: Fixed
- 
     P4 P4
- 
    None
- 
        b04
- 
        windows
- 
        Not verified
                    File: src/java.base/windows/native/libjava/ProcessHandleImpl_win.c
In functions getProcessPids0() and parent0() a process snapshot is obtained with CreateToolhelp32Snapshot() and then iterated with Process32First()/Process32Next().
If the initial call to Process32First() fails, the handle of the snapshot is not released.
In functions getProcessPids0() and parent0() a process snapshot is obtained with CreateToolhelp32Snapshot() and then iterated with Process32First()/Process32Next().
If the initial call to Process32First() fails, the handle of the snapshot is not released.