Fixed multiple memory leaks in function http_get_proxy