Bug 828301 - Free zlib internal buffers when we're done uncompressing in the custom linker. r=nfroyd

This commit is contained in:
Mike Hommey 2013-01-10 08:39:07 +01:00
parent 827ceae1ff
commit 58eb7add29

View File

@ -333,6 +333,8 @@ MappableDeflate::mmap(const void *addr, size_t length, int prot, int flags, off_
void
MappableDeflate::finalize()
{
/* Free zlib internal buffers */
inflateEnd(&zStream);
/* Free decompression buffer */
buffer = NULL;
/* Remove reference to Zip archive */