In my personal experience, clothes start smelling funky and 'off' after about 3 hours wet after a wash, and the smell persists even after drying. Only solution is to rewash the entire load.
Also, if you have a front loader, they are extremely prone to growing mildew in the bottom of the rubber gasket. Leaving wet clothes inside makes that much more likely.