Answer :
You might of broke it or maybe sprained it or something maybe go to you local doctors to check and if the hospital if needed
The femur is the is one of the strongest bones in your body. it's HIGHLY unlikely for anyone to ever break it let alone if just walking, you should probably seek medical advice if the pain persists for more than a week or two