
The idiom out of the frying pan, into the fire means to escape from one bad situation and go straight into another one. This one is drawn from the idea of you being in a hot frying pan, and you escape but you find yourself in the fire.
She left her abusive husband but her new boyfriend is just as bad, out of the frying pan into the fire.
