Unpleasant odours can be caused by wet fabrics if they are left in the appliance for a prolonged period.
Frequent use of the dryer will ventilate the appliance properly and the smell will disappear by itself after a while.
In the case of condenser dryers, please also clean the heat exchanger and the filters as described in the operating instructions.
For a quick remedy, spray a cloth with perfume or a similar fragrance and add it to the laundry during the drying cycle.