The way espionage laws are written and enforced in the US, if you give secrets directly to the ENEMY, then you are guilty. BUT, if you disclose it to the MEDIA, and allow them to publicize it to the enemy, then you are in the clear. Fair or not, that is the law.
The law needs to be changed, then. Pronto.