The Catholic Church teaches that purgatory is a state of purgation, or purification, for those who are in a state of grace and friendship with God (cf. Rom. 11:22). These side effects, or temporal effects of sin operate in either this life or the next, and can result from inordinate attachment to creatures, or as a result of possessing a will that is not fully united with God's will.
or as a result of possessing a will that is not fully united with God's will.
Is that a sin or the result of a temporal effect from sin?