Fix some double frees that scanbuild found

Review Request #708 — Created June 1, 2021 and submitted — Latest diff uploaded

Information

pidgin/pidgin
release-2.x.y
4438bf4b23e4

Reviewers

Fix some double frees that scanbuild found

Verified scanbuild no longer detected the errors.