Gas oven wont stay heated?

my gas oven( which is old ten years at least) does not light immediately. But when it does the oven/broiler doors kick open and the oven lights and starts to heat up. But then the flame goes out 5 minutes later and all i smell is gas. is this safe to use? I am renting the apartment.
4 answers 4