Fixes to Coverity defects 83027 73421 72714 72671 72646 72642