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

getPrinterNames() leaks nameArray if Java String allocation fails

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • OS:
      windows

      Description

      If the unlikely event where JNU_NewStringPlatform fails to allocate new Java String object for printer name, std::bad_alloc is thrown. The handler for the exception does not remove the nameArray, thus it will be leaked.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              aivanov Alexey Ivanov
              Reporter:
              aivanov Alexey Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: