Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8207753

Handle to process snapshot is leaked if Process32First() fails

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b04
    • OS:
      windows
    • Verification:
      Not verified

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            igerasim Ivan Gerasimov
            Reporter:
            igerasim Ivan Gerasimov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: