Put the garlic cloves and oil in a small heavy-bottomed saucepan. The exact number of garlic cloves is not important. Just make sure there is enough oil to cover.
Bring to a boil and then reduce to a simmer. Cook, uncovered, for 10-15 minutes, watching closely, or until the garlic is tender and golden brown.
Turn off the heat and stir in the salt.
Pour into a heat-proof container to stop the cooking. (A Mason jar or old jelly jar works well.) Allow to cool and then cover and store in the refrigerator.
Store in the refrigerator for up to four days or freeze if you haven’t used by then. Bring to room temperature prior to using.