Jiri Danek created ARTEMIS-1415:
-----------------------------------

             Summary: Coverity: Resource leak on an exceptional path in 
JMSBridgeImpl.java
                 Key: ARTEMIS-1415
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1415
             Project: ActiveMQ Artemis
          Issue Type: Bug
    Affects Versions: 2.4.0
            Reporter: Jiri Danek
            Priority: Trivial


{noformat}
        11. Condition clientID != null, taking true branch.
 995      if (clientID != null) {
        CID 1409381: Resource leak on an exceptional path (RESOURCE_LEAK) 
[select issue]
        12. noescape: Resource conn is not closed or saved in setClientID. (The 
virtual call resolves to 
org.apache.activemq.artemis.jms.client.ActiveMQConnection.setClientID.) [show 
details]
        13. throw_uncaught: Throwing javax.jms.IllegalStateException from call 
to setClientID; exiting method with uncaught exception. (The virtual call 
resolves to 
org.apache.activemq.artemis.jms.client.ActiveMQConnection.setClientID.) [show 
details]
        
CID 1409470 (#1 of 1): Resource leak on an exceptional path (RESOURCE_LEAK)
14. leaked_resource: Variable conn going out of scope leaks the resource it 
refers to.
 996         conn.setClientID(clientID);
 997      }
{noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to