If he was concerned he should have disclosed his concerns to the proper jurisdictional legal authority, not to a couple of then-unknown media punks. It was most certainly not treason, and it may not have been illegal, but it was clearly unethical.
I certainly agree that it was unethical and probably should have cost him his job, but I don't think it was unethical and it damn sure wasn't treason.