Fix some issues in the tcl loader that scanbuild found

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

Information

pidgin/pidgin
release-2.x.y
6af866ccb6ed

Reviewers

Fix some issues in the tcl loader that scanbuild found

Verified the errors are no longer detected by scanbuild.