When used correctly, a class of heartburn drugs called proton pump inhibitors can prevent esophageal cancer. Used incorrectly, they may increase the risk of gastric cancer
http://www.empowher.com/stomach-cancer/content/heartburn-drugs-may-cause-or-prevent-cancer
Heartburn Drugs May Cause or Prevent Cancer