Fixes to Coverity errors:
72747
75940
75941
73408
75425