This figurative phrase means to tell someone the truth about something they had misunderstood or about which they had received false information. According to the Free Online Dictionary, it was coined in the first half of the 1900s.
Where did "set someone straight" come from?