Fix memory leak from not cleaning up config parser.