Seven Chiranjeevi are mostly believed to fight alongside Kalki avatar against Kali. Ashwatthama is also a part of 7 Chiranjeevi, and his curse now is to Clear his sins which he made post Kurukshetra war. So that he will become a pure soul by the time Kalki avatar arrives.