The following is copied from one of many web sites that inform you of the danger of garlic and botulism.
Garlic Oil
Fresh garlic and oil are a dangerous combination if left at room temperature. Because of garlic?s low acidity and oil?s lack of oxygen, they can cause botulism toxin to develop. However, peeled cloves of garlic can be added to oil and stored in the freezer for several months.
It's ok to freeze the jars!
Cheers,
Paul