gplugin/gplugin

Simplify some error freeing

13 months ago, Elliott Sales de Andrade
574a15115c40
Simplify some error freeing

Also, clarify the state of an `error` in a test.

Testing Done:
Compiled and ran tests.

Reviewed at https://reviews.imfreedom.org/r/2380/
REVIEWBOARD_URL = "https://reviews.imfreedom.org/"
REPOSITORY = "gplugin/gplugin"
REPOSITORY_TYPE = "mercurial"
BRANCH = "default"
LAND_DEST_BRANCH = "default"
LAND_PUSH = False