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

Coverity static analysis: Resource leak in KeyStoreCredentialStore (Elytron)

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: