Fixes to Coverity defects 72681, 72683, 72691.