I have had a few leg mishaps over the years, some have healed and others we have culled.
You have two choices, take it to a vet, or wait and see how it goes. I would give the bird a gentle examination to see if I can determine the problem. A break requires help to heal. Other things can heal...