Question: what to do when a leg cramps?
Answer: Stretch and massage. Stretch the cramped muscle and gently rub it to help it relax. For a calf cramp, put your weight on your cramped leg and bend your knee slightly. ... 
Apply heat or cold. Use a warm towel or heating pad on tense or tight muscles.