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

Coverity static analysis: Resource leak in OidsUtil (Elytron)

XMLWordPrintable

      Coverity static-analysis scan found resource leak in OidsUtil static initialization block.

      https://scan7.coverity.com/reports.htm#v16159/p11778/fileInstanceId=6804056&defectInstanceId=1776762&mergedDefectId=1384493
      Following code is used in the static block

      props.load(OidsUtil.class.getResourceAsStream("oids.properties"));
      

      The resource created by OidsUtil.class.getResourceAsStream("oids.properties") is not closed properly.

              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: