An obligation is extinguished by a release therefrom given to the debtor by the creditor upon a new consideration or in writing with or without new consideration.