Potassium sorbate is a preservative that's widely used in both food and cosmetics.
It is particularly effective in inhibiting fungi such as moulds and yeasts, and is often used in combination with other preservatives that are more effective against bacterial microbes.