Leaking info is fine..as long as it benefits Democrats..if it benefits Republicans..OMG NO NO THIS IS EVIL ITS A THREAT TO OUR SECURITY
Imagine you get wind of an attack force on Hawaii aimed at sinking your carriers. So you move the carriers away. That the carriers have moved is normally classified information, but you might elect to announce that the carriers are not longer in Hawaii thereby defeating the purpose of the advance and potentially staving off attack. The President breaks no law by ordering the release of the non-location of the carriers.