Sounds like it is working OK but if I saw that kind of discoloration, I'd be worried that the semiconductor was subjected to abnormal current levels and likely to fail after you put in the hard work to pull, diagnose/resolder and replace.
At least if it happens again, you have a likely suspect for replacement.
FYI, here is a
datasheet of this part which is a 5v voltage regulator.