[PATCH 5/6] treewide: remove dereference of list iterator after loop body