libcurl: fixed incorrect free_function for SList
libcurl: fixed ownership when appending a string to a SList