Clean up some Coverity issues.