fix small memory leak with curl slist