Fixes to Coverity tasks 72734, 72717, 72700