Commit 7a1c8f41 authored by Francesco Puntillo's avatar Francesco Puntillo

Fix memory leak in unzip method

parent c67e1055
......@@ -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