In the Falklands case it seems MOD announced those details in a press conference - the plain implication being that MOD was good for these details to be made public.
Really this was a MOD INFOSEC error. Beyond death and taxes, the only certainty is that the press will immediately broadcast whatever is told them. The responsibility for assessing whether certain information can be safely released rests with the military authorities.