Hello Martin
I have had it in a cupboard for well over a year.
Adding garlic to hot oil and the addition of vinegar both help to preserve the garlic. Salt and turmeric also act as a preservers. These ingredients are added to most Indian pickles.
Mamta