pull someone's bacon out of the fire

Verb

 * 1)  To rescue someone, especially at the last moment.