Fixes to Coverity defects:
72643
72645
72655
72656
72657
72658
72664
72698
72712