Your dog may have hip or knee problems. He or she needs to see a vet.
I think you need to take your dog to the vet to find out what's going on with his leg because you never know it could be good or bad news but to know sooner is batter it also depends on his age.