The Catholic Church teaches regarding baptism:
The effect of this sacrament is the remission of all sin, original and actual; likewise of all punishment which is due for sin. As a consequence, no satisfaction for past sins is enjoined upon those who are baptized; and if they die before they commit any sin , they attain immediately to the kingdom of heaven and the vision of God.
In a Lenten talk a priest spoke about a mobster who had committed many murders. He asked to be baptized since he was not sure he had been. As a result of baptism, if he were to die before commiting any sins he would he would go straight to heaven, said the priest
Assuming such a person were contrite, I can understand that he would be forgiven. However, let us suppose he had a partner in crime who WAS already baptized as an infant, was also contrite and made a sacramental confession. He is forgiven his sins, but if this man were to die, he would still incur temporal punishment. Why should one person suffer in purgatory and not the other? This does not seem just to me! Can you explain?