1. fixed code about delete char* 2. free curl_slist 3. added lock for EndpointProvider::LoadLocalEndpoints()