No one in purgatory is lost or will go into hell. They are all saved. Purification and justification is not from the same packing. This are two distinctive things. A justified soul is not necessarily, 100% pure and holy. Any justified soul is embarked in the processus of sanctification. A process that is not immediate.
If you die today, you cannot meet God into your present condition. Your sanctification is not totally achieved. It is the same for me. We are two imperfect men. Our souls will be cleaned in the afterlife.
Trinity