newlistCurrent = newlistRoot; while (newlistCurrent) { Newnode *tempNode = newlistCurrent->next; free (newlistCurrent); newlistCurrent = tempNode; }