Skip to content

Commit 924b924

Browse files
committed
fix memory leak
1 parent 6b302a3 commit 924b924

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SSZipArchive/SSZipArchive.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ + (BOOL)unzipFileAtPath:(NSString *)path
364364
// ignoring resource forks: https://superuser.com/questions/104500/what-is-macosx-folder
365365
unzCloseCurrentFile(zip);
366366
ret = unzGoToNextFile(zip);
367+
free(filename);
367368
continue;
368369
}
369370
if (!strPath.length) {

0 commit comments

Comments
 (0)