I've had to put a desoldering gun over bent legs and then unbend or jiggle them with heat before, but this risks lots of cosmetic damage to the solder mask and holes, so it's absolutely not what I'd recommend. I only do it on scrap boards or as a final resort, in the opposite situations where...