You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (JIRA)" <ji...@apache.org> on 2018/01/23 19:16:00 UTC
[jira] [Resolved] (ARTEMIS-1415) Coverity: Resource leak on an
exceptional path in JMSBridgeImpl.java
[ https://issues.apache.org/jira/browse/ARTEMIS-1415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Bertram resolved ARTEMIS-1415.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.5.0
> 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 Daněk
> Assignee: Justin Bertram
> Priority: Trivial
> Fix For: 2.5.0
>
>
> {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
(v7.6.3#76005)