config test: clean up memory leak