Fix a couple of resource leaks in test_config.c

Spotted by Coverity Scan. Not in any released Tor.