Please take him to the vet. If he has a concussion, even a slight one, you will want to know that. Also, if there is something more then a strain to his leg the sooner it's addressed the quicker the healing time.
And if you feel the need to put something on it, cold not heat until the doctor sees him.
Good luck and let us know what happens.