Fix some memory leaks in ecc code

This commit is contained in:
Matt Johnston
2015-03-01 22:44:36 +08:00
parent 3113932151
commit 3317916111
3 changed files with 6 additions and 6 deletions

View File

@@ -409,7 +409,7 @@ int buf_ecdsa_verify(buffer *buf, ecc_key *key, buffer *data_buf) {
out:
ltc_ecc_del_point(mG);
ltc_ecc_del_point(mQ);
mp_clear_multi(r, s, v, w, u1, u2, p, e, m, NULL);
ltc_deinit_multi(r, s, v, w, u1, u2, p, e, m, NULL);
if (mp != NULL) {
ltc_mp.montgomery_deinit(mp);
}