Out of the frying pan, into the fire

Used to describe getting out of one dangerous situation, and ending up in another dangerous situation; possibly even worse!