Citric acid can be added to processed and packaged foods and drinks such as ice cream, sorbets, sodas and wine. It is added as a preservative, emulsifying agent and for flavoring. Citric acid is also added to many canned and jarred foods to help prevent botulism.