properly release memory for option_endpoint_urls