Klay Thompson scored 42 points and his 26-point second quarter gave the Warriors a big enough cushion to survive a late Memphis comeback.