Coverity fixes: 72650, 72665

Coverity fixes: 72650, 72665