Well, he followed his father's code, which was what got them both killed. It wasn't him marrying Talisa that got him killed, it was making the poor decision to call on the Freys and to try to uphold an ounce of honor and reconciliation.

On the advice of Catelyn. So she is the actual worst.