Amputating a dying leg could help save the patient's life.