Bugfix: memory leak fixed

inflateInit2 and inflateEnd corrected