comparison dss.c @ 186:4349ed1b3f38

Fix memory leak (reported by Boris Berezovsky)
author Matt Johnston <matt@ucc.asn.au>
date Wed, 04 May 2005 15:22:40 +0000
parents 161557a9dde8
children c9483550701b
comparison
equal deleted inserted replaced
183:5162f4e4021c 186:4349ed1b3f38
417 dropbear_exit("dss error"); 417 dropbear_exit("dss error");
418 } 418 }
419 mp_clear(&dss_s); 419 mp_clear(&dss_s);
420 buf_incrwritepos(buf, writelen); 420 buf_incrwritepos(buf, writelen);
421 421
422 mp_clear_multi(&dss_k, &dss_temp1, &dss_temp1, &dss_r, &dss_s, 422 mp_clear_multi(&dss_k, &dss_temp1, &dss_temp2, &dss_r, &dss_s,
423 &dss_m, NULL); 423 &dss_m, NULL);
424 424
425 /* create the signature to return */ 425 /* create the signature to return */
426 426
427 TRACE(("leave buf_put_dss_sign")) 427 TRACE(("leave buf_put_dss_sign"))