free output of read_to_string