Free leakable values in the unit tests.

Thanks, Coverity!  (CID 1171414, 1171415, 1171416)