You can diminish or eliminate odors in the garbage can by adding baking soda to the bottom of the garbage can before you replace the plastic liner.
Baking Soda Under the Sink
Leaving an open box of baking soda under the kitchen sink can help get rid of an area that can be prone to smells.
Baking Soda and Trash Compactors
Sprinkle baking soda in a trash compactor each time you fill it to eliminate odors.
Baking Soda in a Bag
Sprinkle baking soda in the bottom of plastic or paper bags to reduce odors. Try placing crumpled up newspaper sprinkled with baking soda in the bottom of bags to help absorb odors and drips.