Fix some issues scanbuild found

Review Request #668 — Created May 25, 2021 and submitted — Latest diff uploaded

Information

pidgin/pidgin
default
f89d0be91125

Reviewers

Fix some issues scanbuild found

Ran scanbuild and verified all the issues were fixed