I think leaking military secrets is as good as treason.
Down vote me all you like.
I also recognise it’s a slippery slope that will lead to criminal investigations etc being leaked and punished just as hard to keep a politician or police officer safe.
The difference is the military is here to protect everyone, the police are here to protect those in power.