Fix warnings from clang's static analyzer.