Stretching and massaging the muscle, applying a hot pack, or taking a warm bath can help relieve the pain of a leg cramp.