Fix static analyzer warnings.