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

Memory leak in DefaultProxySelector

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b07
    • OS:
      windows

      Backports

        Description

        There's a memory leak in Windows DefaultProxySelector. The method createProxyList creates a list and stores a pointer in `head`; that pointer is then used as iterator, and when the iteration finishes, memory is never free'd.

        The leak only happens when DefaultProxySelector is used (java.net.useSystemProxies=true) and a proxy is used (the connection is not direct).

        Reported by clang-tidy.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                djelinski Daniel Jelinski
                Reporter:
                djelinski Daniel Jelinski
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: