linked list: cleanup in merge_sorted