Hilchos Rechilus, chapter 1, section 3
3) Rechilus is forbidden even if you do not mean to cause hatred, and even if you think the person you speak about acted correctly.
For example: Reuven scolds Shimon for saying something about him. Shimon defends himself and says he was right to say it, because Levi said the exact same thing about him.