Fix double append to m_curlAliasList bug by NULL check.
Fix memory leak, Exists/Stat allocated resource not released correctly.
Merge pull request #2279 from ulion/fix_curl_slist

Fix curl slist related double append and memory leak