Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-830

Coverity static analysis: Resource leak in KeyStoreCredentialStore (Elytron)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 1.1.0.Beta19
    • None
    • None

    Description

      Coverity static-analysis scan found resource leak in KeyStoreCredentialStore.load(String) method.

      https://scan7.coverity.com/reports.htm#v16159/p11778/fileInstanceId=6803973&defectInstanceId=1776761&mergedDefectId=1388282
      The method calls

      keyStore.load(Files.newInputStream(location), getStorePassword(protectionParameter));
      

      The resource java.nio.file.Files.newInputStream(location) is not closed in the load method.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-ivassile Ilia Vassilev
              josef.cacek@gmail.com Josef Cacek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: