Mercurial > dropbear
comparison ecdsa.c @ 1058:063c38ea622b
Fix some memory leaks in ecc code
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 01 Mar 2015 22:44:36 +0800 |
parents | c0b1b7eb5c84 |
children | c339657c9758 |
comparison
equal
deleted
inserted
replaced
1053:fd3712d1ff7f | 1058:063c38ea622b |
---|---|
407 } | 407 } |
408 | 408 |
409 out: | 409 out: |
410 ltc_ecc_del_point(mG); | 410 ltc_ecc_del_point(mG); |
411 ltc_ecc_del_point(mQ); | 411 ltc_ecc_del_point(mQ); |
412 mp_clear_multi(r, s, v, w, u1, u2, p, e, m, NULL); | 412 ltc_deinit_multi(r, s, v, w, u1, u2, p, e, m, NULL); |
413 if (mp != NULL) { | 413 if (mp != NULL) { |
414 ltc_mp.montgomery_deinit(mp); | 414 ltc_mp.montgomery_deinit(mp); |
415 } | 415 } |
416 return ret; | 416 return ret; |
417 } | 417 } |