From 1f7d7372de4706042fb6adfc2ae4cd89347455fe Mon Sep 17 00:00:00 2001 From: Colin Cameron Date: Thu, 15 Oct 2015 16:01:17 +0100 Subject: [PATCH] Close file pointer after adding to archive When adding files to an archive, the file pointer was being left open. This was preventing adding large numbers of files to an archive. --- ZipArchive/Main.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ZipArchive/Main.m b/ZipArchive/Main.m index 720c28c..cb71c4f 100644 --- a/ZipArchive/Main.m +++ b/ZipArchive/Main.m @@ -628,6 +628,8 @@ zipCloseFileInZip(_zip); free(buffer); + + fclose(input); return YES; }