The Malfoys are able to avoid serving time in Azkaban, as they provide evidence that helps the Ministry track down the Death Eaters who had fled after the war. It is also probable that, since Narcissa's lie to Voldemort saved Harry's life, the family is pardoned for their crimes.