From 3317916111c2fe05d18ff02fdde0f33cffa5d3e5 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sun, 1 Mar 2015 22:44:36 +0800 Subject: Fix some memory leaks in ecc code --- ecc.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'ecc.c') 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); -- cgit v1.2.3