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

Coverity static analysis: Resource leak in OidsUtil (Elytron)

XMLWordPrintable

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

      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.

              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: