In the Develop module, Lightroom has “Lens Correction”.
Its auto functions work very well. Usually setting profile on (tick) and auto to on (tick) is all I need to remove distortion.
But it can do more. Look at this picture:
You know about not putting a person near the edges, and especially in the corners. Right? Well, sometimes you have no choice, like in the picture above. 16mm lens, and no way to avoid person in corner.
But now I go to Lens Corrections, the MANUAL tab:
..and I drag down “Distortion” until the clock becomes a circle, and the face looks normal.
Not bad, eh!