Heat the oil in a large, shallow saucepan. Add the garlic and cook for a few minutes. When the garlic clove has turned brown remove from the pan and discard. Add the rosemary to the oil and cook for a minute or two, discarding the sprig as it begins to brown.