Your not drinking enough water, & also stretch the leg/legs that are bothering you.
Try putting a bar of dove soap under your sheet. It's an old wives tale that actually works for restless leg syndrome!
I'm 31wks and my legs get restless also! It is sooo uncomfortable I rub them but it dont help much.