summaryrefslogtreecommitdiffhomepage
path: root/ecc.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 /ecc.c
parent3113932151b7d2358565e41c3f81f230436126c9 (diff)
Fix some memory leaks in ecc code
Diffstat (limited to 'ecc.c')
-rw-r--r--ecc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/ecc.c b/ecc.c
index c733c9e..e252884 100644
--- a/ecc.c
+++ b/ecc.c
@@ -86,11 +86,6 @@ static int ecc_is_point(ecc_key *key)
{
mp_int *prime, *b, *t1, *t2;
int err;
-
- prime = m_malloc(sizeof(mp_int));
- b = m_malloc(sizeof(mp_int));
- t1 = m_malloc(sizeof(mp_int));
- t2 = m_malloc(sizeof(mp_int));
m_mp_alloc_init_multi(&prime, &b, &t1, &t2, NULL);