Fix errors found by clang-analyze