Pain in calf when pitching

When I pitch, after a couple of inning or so I experience spasms in my calf. I think it’s because I’m dragging my foot a long way. Anyone have this problem?

when it gets hot a lot of times my push off leg will cramp… is it something like that?