1) what the material exposes
2) how it was obtained
3) why it was released
We should condemn (2) and (3) even if we condemn (1). That is, a properly functioning society shouldn't need to rely on leaks for corruption and abuse of power to be exposed.
At the same time, we should always respond to abuse of power and trust; to do so because we don't want to help "the bad guys" simply creates an environment in which such abuses are tolerated.
Similarly, we should not assume that any comment that we disagree with is a conscious manipulation by malicious actors; otherwise, I could just as easily argue that you have some ulterior motive to post your comment.
How do you figure? Abuse is just use you don't agree with. If everyone in control is perpetrating the abuse, the only way forward is leaking. See: the Snowden leaks.
Those in power have little incentive to restrict it. Leaks are very effective at letting people police their own government.