A leg is short for a legend.
Friend: oyoy have you heard about Tony? He shagged that bird last night. You: damn u foreal? What a fucking leg!