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,