Fix curl slist memory leak