[jboss-jira] [JBoss JIRA] (ELY-831) Coverity static analysis: Resource leak in OidsUtil (Elytron)

Josef Cacek (JIRA) issues at jboss.org
Wed Dec 14 10:13:00 EST 2016


Josef Cacek created ELY-831:
-------------------------------

             Summary: Coverity static analysis: Resource leak in OidsUtil (Elytron)
                 Key: ELY-831
                 URL: https://issues.jboss.org/browse/ELY-831
             Project: WildFly Elytron
          Issue Type: Bug
            Reporter: Josef Cacek
            Assignee: Darran Lofthouse
            Priority: Critical


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
{code}
props.load(OidsUtil.class.getResourceAsStream("oids.properties"));
{code}

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




--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list