Fix some clang-analyzer warnings