Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-7881

Coverity static analysis: Resource leak in KeyStoreCredentialStore (Elytron)

XMLWordPrintable

      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.

              darran.lofthouse@redhat.com Darran Lofthouse
              josef.cacek@gmail.com Josef Cacek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: