hang out to dry vs walk out on

hang out to dry

verb
  • To abandon someone who is in need or in danger, especially a colleague or one dependent. 

  • Used other than figuratively or idiomatically: see hang, out, dry. 

walk out on

verb
  • To abandon or desert someone, especially a spouse. 

How often have the words hang out to dry and walk out on occurred in a corpus of books? (source: Google Ngram Viewer )