Skip to content

Commit

Permalink
Added fclose to writeFile
Browse files Browse the repository at this point in the history
need fclose to avoid running out of file handles
  • Loading branch information
cvisprogrammer committed Nov 28, 2012
1 parent 3f5a7b3 commit 1d163e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SSZipArchive.m
Expand Up @@ -349,6 +349,7 @@ - (BOOL)writeFile:(NSString *)path {

zipCloseFileInZip(_zip);
free(buffer);
fclose(input);
return YES;
}

Expand Down

0 comments on commit 1d163e4

Please sign in to comment.