Make sure we don't try to free a random element of cfg in set_config_value()