Fix some warning found by Clang Analyzer