Commit 2a3e908d authored by Roy Marmelstein's avatar Roy Marmelstein

Merge pull request #18 from punty/fix-memory-unzip

Fix memory leak in unzip method
parents c67e1055 7a1c8f41
......@@ -96,6 +96,9 @@ public class Zip {
// Begin unzipping
let zip = unzOpen64(path)
defer {
unzClose(zip)
}
if unzGoToFirstFile(zip) != UNZ_OK {
throw ZipError.UnzipFail
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment