Whenever land is sold under an executory contract authorizing the vendee to improve the same, and such contract is forfeited or surrendered after liens have attached by reason of such improvements, the title of the vendor shall be subject thereto, but he shall not be personally liable if the contract was made in good faith.
SDCL 44-9-3