fix: Fix memory leak in ZipImplementation with -Xuse-fast-jar-file-system

When using the compiler with `-Xuse-fast-jar-file-system` enabled, the compiler causes memory leak in ZipImplementation class at MappedByteBuffer.contentsToByteArray method since the Inflater used to deflate zip/jar files, isn't released/ended after the task.
This commit is contained in:
Pranav
2023-06-13 20:38:51 +05:30
committed by Space Team
parent 72c9378500
commit 6c7963fe47
@@ -53,6 +53,7 @@ fun MappedByteBuffer.contentsToByteArray(
val result = ByteArray(zipEntryDescription.uncompressedSize)
inflater.inflate(result)
inflater.end()
result
}