Clean up errors reported by static analyzer

* Clean up errors reported by static analyzer
* Fix configurations to run on auto conditions