From e105768592ad1906460a4664e4259302d68a0194 Mon Sep 17 00:00:00 2001 From: auermich93 Date: Mon, 21 Mar 2022 11:51:15 +0100 Subject: [PATCH] fixes issue #2473 (#2783) --- .../apktool-lib/src/main/java/brut/androlib/Androlib.java | 1 + 1 file changed, 1 insertion(+) diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java index 833a8d9d..e06d9ee1 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java @@ -705,6 +705,7 @@ public class Androlib { BufferedInputStream unknownFile = new BufferedInputStream(new FileInputStream(inputFile)); CRC32 crc = BrutIO.calculateCrc(unknownFile); newEntry.setCrc(crc.getValue()); + unknownFile.close(); } else { newEntry.setMethod(ZipEntry.DEFLATED); }