If he was revealing the government breaking the law (as currently written), then he shouldn't be prosecuted.
If he was revealing confidential information, but the government was following the law (as currently written), he should be prosecuted.
It seems many here disagree with the law and so that should absolve all wrongdoing related to it. Why not work towards changing the law?
Should it be so simple that any time we disagree with what the government is doing there should be no repercussions to revealing confidential information?