Fixes to Coverity defects 84879 84878 72752 72742