Fix inflater memory leak