Fix some issues scanbuild found in zephyr

Review Request #707 — Created June 2, 2021 and submitted — Latest diff uploaded

Information

pidgin/pidgin
release-2.x.y
d3349f1bbbe0

Reviewers

Fix some issues scanbuild found in zephyr

Verfied that scanbuild no longer detects the errors.