BOSTON (AP) -- Animals abandoned during foreclosures would be granted extra protections under a bill approved by the Massachusetts Senate.

Sen. Jamie Eldridge says he filed the bill after what he called the tragic death of a dog in an abandoned building in Hudson.

The Acton Democrat says the bill would protect abandoned animals by requiring landlords to inspect vacant buildings for animals or pets within five days of a property being vacated through foreclosure or the loss of tenancy.

If an abandoned animal is found, the landlord or property owner would be required to immediately notify a local animal control officer.

Eldridge says the bill is intended to ease the suffering of abandoned animals and pets.

The bill was approved unanimously by the Senate and now heads to the Massachusetts House.