save (one's) bacon
To rescue one from failure, danger, or disaster; to prevent something bad from happening to one. Thanks for bringing me some extra cash—you really saved my bacon. The company is in dire need of new investors to save their bacon.
save somebody’s ˈbacon
(informal) rescue somebody from a difficult or dangerous situation: Thank you for helping me with my exam preparation. You really saved my bacon. OPPOSITE: throw somebody to the wolves/lions