Fix double append to m_curlAliasList bug by NULL check.
Fix memory leak, Exists/Stat allocated resource not released correctly.