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:
+1
@@ -53,6 +53,7 @@ fun MappedByteBuffer.contentsToByteArray(
|
||||
val result = ByteArray(zipEntryDescription.uncompressedSize)
|
||||
|
||||
inflater.inflate(result)
|
||||
inflater.end()
|
||||
|
||||
result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user