jrmunson / ziparchive

Automatically exported from code.google.com/p/ziparchive
0 stars 0 forks source link

Memory leak in unzip.c of minizip. #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Although I know minizip is not your project I am sharing this issue at your 
page, since zipArchive uses minizip as its engine to unzip the files. I am 
attaching a screenshot of the memory leak as shown at the Instruments of Xcode. 
Please verify or not. Thank you. 

Sincerely,
Alex 

Original issue reported on code.google.com by akarargy...@gmail.com on 21 Aug 2010 at 12:37

Attachments:

GoogleCodeExporter commented 8 years ago
This memory leak is occurring because you have not closed your file after 
unzipping.  If you scroll down you will see an "unzClose" function which 
releases the memory allocated in "unzOpen2"  -- you can accomplish this by 
calling "UnzipCloseFile" on the ZipArchive object.

Original comment by elinc...@hachisoft.com on 15 Feb 2011 at 7:51