You can leave dirty clothes in a hamper indefinitely, provided that there are no damp garments or wet food stains. Wet clothes encourage mold and mildew growth, which destroys the fabric.