added inflateEnd() to address memory leak