Fix a potential memory leak scanbuild identified

Review Request #709 — Created June 2, 2021 and submitted

Information

pidgin/pidgin
release-2.x.y
1f33493c7ec8

Reviewers

Fix a potential memory leak scanbuild identified

Verified scanbuild no longer detected the error.