diff --git a/relinker/src/main/java/com/getkeepsafe/relinker/ApkLibraryInstaller.java b/relinker/src/main/java/com/getkeepsafe/relinker/ApkLibraryInstaller.java index 6f12fc9..150d944 100644 --- a/relinker/src/main/java/com/getkeepsafe/relinker/ApkLibraryInstaller.java +++ b/relinker/src/main/java/com/getkeepsafe/relinker/ApkLibraryInstaller.java @@ -59,9 +59,9 @@ public ZipFileInZipEntry(ZipFile zipFile, ZipEntry zipEntry) { } private ZipFileInZipEntry findAPKWithLibrary(final Context context, - final String[] abis, - final String mappedLibraryName, - final ReLinkerInstance instance) { + final String[] abis, + final String mappedLibraryName, + final ReLinkerInstance instance) { ZipFile zipFile = null; for (String sourceDir : sourceDirectories(context)) { @@ -96,6 +96,11 @@ private ZipFileInZipEntry findAPKWithLibrary(final Context context, } } } + + try { + zipFile.close(); + } catch (IOException ignored) { + } } return null;