copy the list name and free the json data after parsing;
free the curl result buffer after reading the json;