You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vb...@apache.org on 2016/08/01 11:09:54 UTC
ambari git commit: AMBARI-17922. Part_2.Coverity Scan Security
Vulnerability - Resource Leak defects.(vbrodetskyi)
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 <vb...@hortonworks.com>
Authored: Mon Aug 1 14:09:17 2016 +0300
Committer: Vitaly Brodetskyi <vb...@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) {
+ }
+ }
}
}
}