Fix some issues scanbuild found in proxy.c

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

Information

pidgin/pidgin
release-2.x.y
7c16f5d5d8c7

Reviewers

Fix some issues scanbuild found in proxy.c

Verified scanbuild no longer detected the errors.