Answer:
The answer is displacement.
Step-by-step explanation:
The displacement mechanism is shown when a person directs strong emotions towards someone or something that didn't provoke the reaction in the first place. This is usually done to avoid negative consequences.
A classic example of displacement is when someone has a bad time with his/her boss at work, and then acts aggressively towards a member of his family.