Fixed missed freeing of list items.