The creditor or purchaser, upon payment or tender to him of the amount to be paid for redeeming the estate set off or sold to him, and a reasonable sum for making and executing the release, shall execute a release to the debtor of all right acquired by the setoff or sale.