Clothes dryers should always vent to the outside air. I came across a dryer vent today that was terminated inside the attic. All of the hot, moist and linty air was filling up in the attic. The moisture will compromise the wood and insulation over time. Also, the lint will build up in the attic. Vents should always exhaust all the way outside.