Hermione, Draco, Lucius, Theo, Blaise, and anyone else involved in the uprising and resistance against Voldemort were pardoned before Potter became the Minister, much to the Boy-Who-Refused-to-Die’s dismay.