Wouldn't it be displacement?
Displacement. Dealing with emotional stressors by redirecting emotion from a 'dangerous' object to a 'safe' object. For example, a worker is angered by his superior but suppresses his anger; later, on return to his home, he punishes one of his children for misbehaviour that would usually be tolerated or ignored.