Fix a few Static Analysis warnings.