Mala means waste material (urine, faeces, sweat) of body and intends upon urine and faeces here.
After thinking of digestion (the food consumed at night being digested or not; i.e urge of defaecation) one should proceed for excretion of faeces and urine.
The excretion site should be washed with clean water.