No it's not. Laws function by intention, too. He didn't make it public to aid the "enemy" (who is the enemy anyway? the world?). He did it to protect America. I think he also swore an oath to protect America against enemies both domestic and abroad. And he also swore to defend the Constitution - not the president.
When the enemy is 'terrorism', anything you make public is giving information to the enemy.
That is why the expression is so important and why Obama (and Bush in his time) keeps saying that the US is 'at war'. Because that allows them to subvert the law.
Honestly: I am not defending the Administration, on the contrary. I am just explaining why they are going to try to persecute him for treason if (when) they find him.
I think leaking some of this stuff is one of the most patriotic things you can do, given the subject matter and the government overreach it was meant to expose.
In fact, I wish this happened more often. The population as a whole shows a lot of apathy until something like this happens to stir the coals. Unfortunately, it's going to take a lot more than just this to bring about major change.