commit | 264543a18fac29da2e83569aa44eed112ebc9ea6 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Fri Dec 20 15:59:33 2013 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Fri Dec 20 15:59:33 2013 +0000 |
tree | f309ec9ac344c0d695e513a6c8790967ff70bea8 | |
parent | 567b032fbdd398d4ef33ec2b94758c946d582c26 [diff] |
Make sure we close input stream after reading framework version. (FELIX-4365) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1552709 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/Felix.java b/framework/src/main/java/org/apache/felix/framework/Felix.java index e4dc4f7..d670d78 100644 --- a/framework/src/main/java/org/apache/felix/framework/Felix.java +++ b/framework/src/main/java/org/apache/felix/framework/Felix.java
@@ -4498,6 +4498,17 @@ { ex.printStackTrace(); } + finally + { + try + { + in.close(); + } + catch (IOException ex) + { + // Not much we can do. + } + } } // Maven uses a '-' to separate the version qualifier,