cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From koushik-das <...@git.apache.org>
Subject [GitHub] cloudstack pull request: asserted coverity resource leak issues
Date Fri, 17 Jul 2015 08:16:00 GMT
Github user koushik-das commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/599#discussion_r34870126
  
    --- Diff: framework/db/src/com/cloud/utils/db/Merovingian2.java ---
    @@ -63,9 +63,7 @@
         private Merovingian2(long msId) {
             super(MerovingianMBean.class, false);
             _msId = msId;
    -        Connection conn = null;
    -        try {
    -            conn = TransactionLegacy.getStandaloneConnectionWithException();
    +        try (Connection conn = TransactionLegacy.getStandaloneConnectionWithException();)
{
    --- End diff --
    
    Connection is used in ConnectionConcierge object. There will be failure somewhere else
if Connection get GC'ed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message