cleanup dlinkedlist