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

getPrinterNames() leaks nameArray if Java String allocation fails

    XMLWordPrintable

Details

    • 2d
    • windows

    Description

      In 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

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

              Dates

                Created:
                Updated:
                Resolved: