Fix static analyzer issues.