Patel was guilty of privateering on government time. Despicable in itself and was rightly sacked. There is no evidence, and neither has there been any indication of any, that she released government information to a third party. Which is, of course what we were talking about here.
Williamson was subjected to an informal enquiry (otherwise known as witchhunt) the results of which were never released, other than May saying "I have evidence". Williamson denies it, refused to resign, and welcomed a formal enquiry. May wanted him out of cabinet for whatever reason, and she got him out.
I'm not defending either of these by the way. Patel deserved what she got and I wish Williamson stayed out of government because he's been a total mess in education. I just think you're wrong in this particular argument about them releasing sensitive government information.