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.

(Code 1923, Β§5643; Code 1940, T. 9, Β§4.)