Fix minor memory leak in the config parser