That appears to be an injury that has become infected. The patient likely injured the leg trying to fly up to a perch too high or without enough room to flap wings for adequate lift. After tending to the wound, that needs to be addressed.
Coincidentally, I am currently treating a rooster for...