Looks like oldhead->next is undefined. wat?