http://xkcd.com/246/
Anyway, as somewhat of a hint...don't assume that the guard which tells the truth is guarding the freedom door while the liar is guarding the death door. That doesn't have to be the case, the solution works regardless of the guard-door setup to be more precise.
Rofl