Know when to see a doctor about your leg or foot cramping. Some people are more prone to leg cramping, such as women who are pregnant and children having growing pains. Most of the time, charlie horses are not harmful but merely an annoyance that wakes you up at night. In some cases, however, night cramps are an indicator that you have an illness or condition that may need to be treated by a doctor. If you start having charlie horse cramps after you were exposed to lead or another toxin, you should see a doctor. Tell your doctor about your leg cramps if you have diabetes, flat feet, hypothyroidism, peripheral artery disease, alcoholism, Addison’s disease, kidney or liver failure, or if you are on blood pressure medication, taking oral contraceptives or have had gastric bypass surgery, according to the Mayo Clinic. Go to the doctor if your night cramps are so excessive you can’t get any sleep.