Address warnings generated by the clang analyzer.

MFC after: 1 week