It happened in the 70s to Daniel Ellsberg, the Pentagon Paper's leaker.
"Judge Byrne dismissed all charges against Ellsberg."
"He and Russo faced charges under the Espionage Act of 1917 and other charges including theft and conspiracy, carrying a total maximum sentence of 115 years."