Would you throw away the food if you come to know if it has gelatin in it? For example you buy a local grocery store brand yogurt and it has gelatin in it and you didn’t see the ingredients.
Will you throw it away that it is haraam ?or
Will you eat it thinking that food shouldn’t go waste and will be careful next time. Or
You will eat it you don’t care about halaal and haraam ingredients in minor things
You will eat it anyway you eat everything you don’t bring religion in food.
If I could give it away to someone who is not muslim I would othrwise i would throw it away as I have done in the past. Most stores these days do tell you the ingredients and I always read when buying new products.
If I don't have any animal to feed it to, I will throw it away. I wouldn't even give it to a non muslim either.. it's like saying I can't eat haram but sure you go ahead and eat it.