Truth or a Lie?

You are in a dark room, the only way to escape is two doors. But one of them lead to an imminent death, the other freedom. There is one guard at each door. One of them only tells the truth. The other only lies. You don’t know which is which. What do you ask them, to figure out the door to freedom? Also, you only get one question.