compressor: fix leak showed by instruments

Zlib dynamically allocates data structures that have to be freed up.