Built in function to free list data