Fix some issues scanbuild found in the simple protocol plugin

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

Information

pidgin/pidgin
release-2.x.y
36577b1e3a72

Reviewers

Fix some issues scanbuild found in the simple protocol plugin

Verified scanbuild no longer detected the errors.