Fix CID 1116497 Resource leak Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/cc913cf0 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/cc913cf0 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/cc913cf0
Branch: refs/heads/master Commit: cc913cf0bb7e62b7a216e2de793336e61a49b485 Parents: 5c29f3f Author: Hugo Trippaers <[email protected]> Authored: Fri Jul 4 13:50:03 2014 +0200 Committer: Hugo Trippaers <[email protected]> Committed: Fri Jul 4 13:50:33 2014 +0200 ---------------------------------------------------------------------- .../server/src/com/cloud/consoleproxy/ConsoleProxy.java | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/cc913cf0/services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxy.java ---------------------------------------------------------------------- diff --git a/services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxy.java b/services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxy.java index 02fda64..3b3b82f 100644 --- a/services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxy.java +++ b/services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxy.java @@ -307,6 +307,11 @@ public class ConsoleProxy { s_logger.error(e.toString(), e); } } + try { + confs.close(); + } catch (IOException e) { + s_logger.error("Failed to close consolepropxy.properties : " + e.toString(), e); + } start(conf); }
