Possible hip dislocation. Lay him on his back and once he calms down allow his legs to fall at a natural angle. If the affected leg is shorter in length while the bird is at rest he has most likely dislocated his hip or a possible fracture of pelvis which has allowed the hip socket to release...