Such pain might be due to Excessive Stress exerted over the leg by you or some improper positioning of leg While Standing.
Next Steps
Apply Diclofenac Gel / Spray over the area and wrap it (not too tight) via Crepe Bandage / Cloath.
Do Regular Exercise and do visit Physiotherapist if problem persist.
Health Tips
Avoid Putting leg into OverStress.
If Problem Persists you can go for MRI (Visit Doctor First).