What drug was created in 1874 to cure a morphine addiction an was thought to be non-addictive?

Heroin (diacetylmorphine).