buy out from under

Verb

 * 1)  To purchase (something) that (somebody else) intends to buy.
 * We better make an offer before somebody buys the house out from under us.
 * 1)  To make a payment to escape from or cancel (a problem).
 * He bought out from under his legal problems.