summaryrefslogtreecommitdiffhomepage
path: root/ecdsa.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-03-01 22:44:36 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-03-01 22:44:36 +0800
commit3317916111c2fe05d18ff02fdde0f33cffa5d3e5 (patch)
treebdc6c8ee92a9009f9f48006beafbbf26f10d3727 /ecdsa.c
parent3113932151b7d2358565e41c3f81f230436126c9 (diff)
Fix some memory leaks in ecc code
Diffstat (limited to 'ecdsa.c')
-rw-r--r--ecdsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecdsa.c b/ecdsa.c
index 0396014..4fee796 100644
--- a/ecdsa.c
+++ b/ecdsa.c
@@ -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);
}