A surety is exonerated by performance of the principal obligation or tender of such performance duly made as provided in this code.

Source: SDC 1939, § 26.0205 (2).