resource stream leak on android
see log below from conscrypt 2.2.1 (2.3.0 is not yet available for android?)

(tested on android 4.4)

E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
    java.lang.Throwable: Explicit termination method 'end' not called
        at dalvik.system.CloseGuard.open(CloseGuard.java:184)
        at java.util.zip.Inflater.<init>(Inflater.java:82)
        at java.util.zip.ZipFile.getInputStream(ZipFile.java:310)
        at java.util.jar.JarFile.getInputStream(JarFile.java:409)
        at libcore.net.url.JarURLConnectionImpl.getInputStream(JarURLConnectionImpl.java:222)
        at java.net.URL.openStream(URL.java:470)
        at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:432)
        at java.lang.Class.getResourceAsStream(Class.java:1037)
        at org.conscrypt.Conscrypt.<clinit>(Conscrypt.java:80)
diff --git a/common/src/main/java/org/conscrypt/Conscrypt.java b/common/src/main/java/org/conscrypt/Conscrypt.java
index c562a69b..42440fdd 100644
--- a/common/src/main/java/org/conscrypt/Conscrypt.java
+++ b/common/src/main/java/org/conscrypt/Conscrypt.java
@@ -34,6 +34,7 @@ import javax.net.ssl.SSLSocket;
 import javax.net.ssl.SSLSocketFactory;
 import javax.net.ssl.TrustManager;
 import javax.net.ssl.X509TrustManager;
+import org.conscrypt.io.IoUtils;
 
 /**
  * Core API for creating and configuring all Conscrypt types.
@@ -76,8 +77,9 @@ public final class Conscrypt {
         int major = -1;
         int minor = -1;
         int patch = -1;
+        InputStream stream = null;
         try {
-            InputStream stream = Conscrypt.class.getResourceAsStream("conscrypt.properties");
+            stream = Conscrypt.class.getResourceAsStream("conscrypt.properties");
             if (stream != null) {
                 Properties props = new Properties();
                 props.load(stream);
@@ -86,6 +88,8 @@ public final class Conscrypt {
                 patch = Integer.parseInt(props.getProperty("org.conscrypt.version.patch", "-1"));
             }
         } catch (IOException e) {
+        } finally {
+            IoUtils.closeQuietly(stream);
         }
         if ((major >= 0) && (minor >= 0) && (patch >= 0)) {
             VERSION = new Version(major, minor, patch);
['common/src/main/java/org/conscrypt/Conscrypt.java']