The poor dog was dying from being abandoned for days in a landfill