ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vbrodets...@apache.org
Subject ambari git commit: AMBARI-17922. Part_2.Coverity Scan Security Vulnerability - Resource Leak defects.(vbrodetskyi)
Date Mon, 01 Aug 2016 11:09:54 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 d25883cfa -> d0a5ab073


AMBARI-17922. Part_2.Coverity Scan Security Vulnerability - Resource Leak defects.(vbrodetskyi)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d0a5ab07
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d0a5ab07
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d0a5ab07

Branch: refs/heads/branch-2.4
Commit: d0a5ab073c644a01732feb3c43a633bbe00c921f
Parents: d25883c
Author: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Authored: Mon Aug 1 14:09:17 2016 +0300
Committer: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Committed: Mon Aug 1 14:09:17 2016 +0300

----------------------------------------------------------------------
 .../main/java/org/apache/ambari/server/view/ViewRegistry.java | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d0a5ab07/ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java b/ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java
index f49f604..156fd5b 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java
@@ -1773,6 +1773,13 @@ public class ViewRegistry {
           } catch (IOException e) {
           }
         }
+
+        if (viewLog4jStream != null) {
+          try {
+            viewLog4jStream.close();
+          } catch (IOException e) {
+          }
+        }
       }
     }
   }


Mime
View raw message