For example, if a heresy muddies the waters with a doctrinal subject, the pope will (carefully) use his power of infallibility in the matters of faith and morals to combat the heresy.
So in the context of this thread that marriage of the priesthood was a heresy?