Free compressed buffer after write_sha1_file() is done.