Fixes to Coverity defects: 72662 82143 82144 82145 82348 82349