In pasta pot, heat oil over medium heat. Add rosemary and fry, stirring constantly, until the herb is just starting to brown; 1 to 2 minutes. Using a slotted spoon, transfer rosemary to a paper towel, leaving oil in pot.