I have a function that takes a pointer to a char ** and fills it with strings (an array of strings I guess). *list_of_strings* is allocated memory inside the function.
You need to iterate over list and call free() on every array member. Then free the array.
list
free()