How long does cooked garlic keep in fridge?
In general the FDA recommends that you consume leftovers within 3-5 days (See their website for specific foods). In this case, I don't think the garlic is what's holding you back.

While garlic and herb infused oils do present some botulism risk, I think what they are getting at is the can of preserved garlic you've had in the fridge for 9 months.