Fix memory leak in the config parser

refs #7566