I would rather free the linked list like this