I think it was highly hypocritical that when Petreaus was accused of leaking secret documents he was sacked but when Hilary did the same, nothing was done and she was allowed to stand for the presidential office, does the law only work when it comes to commoners but it doesn't when it comes to others.
Petraeus was accused of giving classified information to a woman he was having sex with. He also had ties to another woman who would create difficult 'optics' for Trump vis the Russian issue. Petraeus was not so much 'sacked' as he was 'unprosecuted', considering on a very basic level there have been many people who commited lesser offenses, for better motives, and who were prosecuted seriously.