Newsflash: Termination of residency – what courtesy do I owe the realtor?

I just found out that the home I rent is about to be listed for sale. I have chosen not to purchase and instead will be moving, however there is a possibility that the home may be listed before I move out. Am I under any legal obligation to open the home for a realtor and unknown other persons to view the home? If I am required to allow them access do I need to leave the house and allow them to view the home without me there?Thanks for your input!