Don’t attack him either.
If your son comes back from a custody visit, and starts complaining about the way your ex-partner has acted, you don’t have to take on the role of defence attorney. Just listen thoughtfully and respond as objectively as you can. If your son is upset about something that seems to you to be trivial or unlikely, it’s probably part of a deeper agenda.